Î÷±±Ãñ×å´óѧ 2011¼¶±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
»ùÓÚµ¥Æ¬»úµÄÓïÒô±¨¼Ûµç×ӳƵÄÉè¼Æ
Äê ¼¶: 2011¼¶ ѧ ºÅ: ÐÕ Ãû: ר Òµ: µçÆø¹¤³Ì¼°Æä×Ô¶¯»¯ Ö¸µ¼ÀÏʦ:
¶þÁãÒ»ÎåÄêÁùÔÂ
Î÷±±Ãñ×å´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
Õª Òª
±¾ÎÄÉè¼ÆµÄÄÚÈÝÊÇÒ»¿î»ùÓÚµ¥Æ¬»úµÄÓïÒô±¨¼Ûµç×Ó³Ó,ÓïÒô±¨¼ÛÊDZ¾Éè¼ÆµÄÒ»¸öÌØÉ«£¬ÓïÒô±¨¼ÛÄܹ»ÊµÏÖ²¥±¨×ܼۺÍ×ÜÁ¿µÄ¹¦ÄÜ£¬±¾Éè¼ÆµÄ×ÜÌ幦ÄÜÊÇʵÏÖÎïÌåÖØÁ¿µÄ²âÁ¿£¬ÔÚÏÔʾÆÁÉÏÏÔʾ²¢½øÐÐÓïÒô²¥±¨£¬ËüÊÇÓÃѹÁ¦´«¸ÐÆ÷²É¼¯Ñ¹Á¦ÕâÖÖÎïÀíÁ¿²¢°Ñ²É¼¯µ½µÄÊý¾Ýת»»³ÉµçѹÐźţ¬ÔÙ²ÉÓÃרÃŵÄÓÃÔÚ³ÆÖØÁìÓòµÄ24λADת»»Æ÷HX711°ÑµçѹÐźž¹ýÂ˲¨¡¢·Å´ó¡¢²ÉÑùת»»³ÉÊý×ÖÐźŵijÆÖؼÆÁ¿×°Ö㬵±³Ǫ́Éϲ»·ÅÖÃÈκÎÎïÌåʱ¿ÉÒÔ°´ÏÂÇåÁã¼üÀ´ÇåÁ㣬¼´³õʼ»¯¡£³ýÁËÕâЩ¹¦ÄÜÖ®Í⻹¿ÉÒÔͨ¹ý¾ØÕó¼üÅÌÀ´ÉèÖõ¥¼Û£¬Óõ¥¼Û³ËÒÔ×ÜÁ¿±ã¿ÉÒÔ¼ÆËãµÃ³ö»õÎïµÄ×ܼۣ¬²¢½«×ÜÖØÁ¿ºÍ×ܼ۵ÄÊý¾Ý·¢Ë͸øÒº¾§ÆÁLCD1602ÉϽøÐÐÏÔʾ£¬¸Ãϵͳ³ýÁËÉÏÊö¹¦ÄÜÖ®Í⻹¿ÉÒÔ¶Ôµ±Ç°µÄ×ÜÖØÁ¿ºÍ×ܼ۸ñ½øÐÐÓïÒô²¥±¨¡£
¹Ø¼ü´Ê£ºµ¥Æ¬»ú£» ÓïÒô²¥±¨£» Ä£Êýת»»Ä£¿éHX711£» ѹÁ¦´«¸ÐÆ÷
µÚIIÒ³ ¹²53Ò³
Î÷±±Ãñ×å´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
Abstract
This paper introduced a design of a voice electronic scale based on the micro controller.voice offer is a feature of this paper that can broadcast the total weight and total price.The basic function of this paper is to achieve weight and displayed on the LCD screen ,in addition to broadcast total price and total weight .which converted the weight into a voltage signal by a pressure sensor, and then converted the voltage signal into digital signal by 24 bit AD converter HX711.When there is no object on the weighing platform,press the clear button to reset the current weight.In addition,users can also set up the price of per kilogram through button.After putting on the object,the weight can be measured, and total price could be converted automatically in a way of the weight is multiplied by the unit price and displayed on the LCD1602 screen, the system can also broadcast the current total weight and total price.
Key Words£ºSingle chip microcomputer ; Voice broadcast ; AD analog-to-digital converter HX711; Pressure sensor
µÚIIIÒ³ ¹²53Ò³
Î÷±±Ãñ×å´óѧ±¾¿Æ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©
Ŀ ¼
Õª Òª ............................................................... II Abstract .............................................................. III µÚÒ»Õ Ð÷ÂÛ ............................................................ 1
1.1 Ä¿µÄºÍÒâÒå ............................................................................................................. 1 1.2 Ñо¿¸Å¿ö¼°·¢Õ¹Ç÷ÊÆ ............................................................................................. 2 1.3 ±¾Éè¼ÆÖ÷ÒªÄÚÈÝ ..................................................................................................... 3 1.6 ±¾ÕÂС½á ................................................................................................................. 3 µÚ¶þÕ ×ÜÌå·½°¸Ñ¡ÐÍÓëÉè¼Æ .............................................. 4
2.1 Ö÷¿ØÄ£¿éµÄÑ¡ÐÍ ..................................................................................................... 4 2.2 ÏÔʾģ¿éµÄÑ¡ÐÍ ..................................................................................................... 4 2.3 Ä£Êýת»»Ä£¿éµÄÑ¡ÐÍ ............................................................................................. 5 2.4 ÓïÒô²¥±¨Ä£¿éµÄÑ¡ÐÍ ............................................................................................. 5 2.5 ϵͳÕûÌåÉè¼Æ¸ÅÊö ................................................................................................. 5 2.6 ±¾ÕÂС½á ................................................................................................................. 6 µÚÈýÕ ϵͳӲ¼þµç·Éè¼Æ ................................................ 7
3.1 Ö÷¿ØÄ£¿é ................................................................................................................. 7
3.1.1 µ¥Æ¬»úSTC89C52Ö÷ÒªÌØÐÔ ................................................................................. 8 3.1.2 µ¥Æ¬»úSTC89C52µÄÖжÏϵͳ ............................................................................. 9 3.1.3 µ¥Æ¬»ú×îСϵͳÉè¼Æ ............................................................................................... 9 3.2 Òº¾§ÏÔʾÆ÷LCD¼ò½é ......................................................................................... 10
3.2.1 Òº¾§ÔÀí½éÉÜ .......................................................................................................... 10 3.2.2 Òº¾§Ä£¿é¼ò½é .......................................................................................................... 11 3.2.3 Òº¾§ÏÔʾ²¿·ÖÓëSTC89C52µÄ½Ó¿Ú ................................................................. 11 3.3 ¾ØÕó¼üÅÌÄ£¿éÉè¼Æ ............................................................................................... 12 3.4 ³ÆÖØÄ£¿éµÄÉè¼Æ ................................................................................................... 13 3.5 ÐźŲɼ¯Ä£¿éÉè¼Æ ............................................................................................... 14
3.5.1 Ä£Êýת»»Ä£¿éHX711оƬ½éÉÜ ......................................................................... 14 3.5.2 Ä£Êýת»»Ä£¿éHX711µç·µÄÉè¼Æ .................................................................... 15 3.6 ÓïÒôÄ£¿éÉè¼Æ ....................................................................................................... 15 3.7 ±¾ÕÂС½á ............................................................................................................... 16 µÚËÄÕ ϵͳÈí¼þÉè¼Æ ................................................... 17
µÚIVÒ³ ¹²53Ò³