»ùÓÚµ¥Æ¬»úµÄµç×Ó³ÓÉè¼Æ±ÏÒµÂÛÎÄÉè¼Æ ÏÂÔر¾ÎÄ

ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2024/11/16 12:43:24ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£

»ùÓÚµ¥Æ¬»úµÄµç×Ó³ÓÉè¼Æ

ÉϺ£Àí¹¤´óѧ Íõ¿­

ÕªÒª

µç×Ó³Ó¼¯¼ÆËã»ú¡¢¼ì²âÓëת»»¡¢Êý×Ö¼¼ÊõÒÔ¼°ÐÅÏ¢´¦ÀíµÈΪһÌå¶ø³ÉµÄÏÖ´ú²âÖØÒÇÆ÷¡£

µç×Ó³ÓÒÔµ¥Æ¬»úΪºËÐÄ¿ØÖÆÆ÷£¬Í¨¹ý³ÆÖØ´«¸ÐÆ÷½øÐжÔÎïÌåÖØÁ¿Ðźŵļì²â£¬¼ì²âµ½µÄÐźŽøÐÐA/Dת»»£¬½«ÖØÁ¿Ðźŷ¢Ë͵½ÏÔʾµç·¡£Ìí¼ÓÊʵ±µÄ¼üÅÌ£¬ÉèÖÃÏÔʾµç·¡£µç×ӳƲ»½öʵÏÖ¸ßËÙ¾«²âÁ¿£¬¸üÄÜ´ïµ½×Ô¶¯²âÖغÍÊý×Ö»¯ÏÔʾ£¬¹ãÊÜÈËÃÇ»¶Ó­¡£

±¾ÏµÍ³µÄÉè¼ÆÓ²¼þµç·£ºÍ¨¹ý HX711 ѹÁ¦´«¸ÐÆ÷²É¼¯ÎïÌå²úÉúµÄѹÁ¦Ðźţ¬´«¸ÐÆ÷²É¼¯µ½µÄÄ£ÄâÁ¿ÐźŻ¹Ðè½øÐнøÐÐADת»»£¬µÃµ½µÄÊý×ÖÁ¿ÐźŴ«Ë͵½µ¥Æ¬»úSTC89S52½øÐд¦ÀíÏÔʾ£¬²ÉÓõÄÏÔʾÆ÷ÊÇ LCD1602Òº¾§ÏÔʾÆ÷¡£ ¹Ø¼ü´Ê£ºSTC89S52µ¥Æ¬»ú£»µç×Ó³Ó£»Ñ¹Á¦´«¸ÐÆ÷£»HX711¡£

I

Abstract

Electronic scales set computer, detection and conversion, digital technology and information processing as one made of modern weighing instruments.

Electronic scales microcontroller as the core controller, by weighing the weight of the object detection sensor signal, the signal detected by the A / D conversion, the weight signal is sent to the display circuit. Add the appropriate keyboard, set the display circuit. Electronics not only to achieve high-speed precision measurements, can be better achieved automatically weigh and digital display, widely welcomed by the people.

The system hardware design: The HX711 pressure sensor to collect objects produce a pressure signal, sensor to the analog signal needs to be AD conversion, the digital signal is transmitted to the microcontroller for processing STC89S52 display, the display is used LCD1602 LCD monitor.

Key words£ºSTC89S52 SCMC£»Electrnoic Scale£»Load sensor; HX711

II

Ŀ ¼

ÕªÒª ................................................................... I Abstract .............................................................. II Ä¿ ¼ ................................................................ III Ð÷ÂÛ ....................................................................................................................................... 1

1.1¿ÎÌâÑо¿±³¾° ................................................... 1 1.2¿ÎÌâÑо¿Ä¿µÄºÍÒâÒå ............................................. 1 1.3¿ÎÌâÑо¿µÄÖ÷ÒªÄÚÈÝ ............................................. 1 µÚ¶þÕ ϵͳӲ¼þ·½°¸Éè¼Æ ................................................................................................. 2

2.1ϵͳÉè¼Æ·½°¸ ................................................... 2 2.2ϵͳԪÆ÷¼þ²ÎÊý ................................................. 4

2.2.1µ¥Æ¬»úÑ¡ÐÍ ............................................... 4 2.2.2´«¸ÐÆ÷Ñ¡Ôñ ............................................... 5 2.2.4 ADת»»Ð¾Æ¬Ñ¡Ôñ .......................................... 7 2.2.5 ʱÖÓоƬѡÔñ ............................................. 8

3ϵͳӲ¼þµç·Éè¼Æ ............................................................................................................ 9

3.1ϵͳµçÔ´µç·Éè¼Æ ............................................... 9 3.2ϵͳ´®¿Úµç·Éè¼Æ .............................................. 10 3.3µ¥Æ¬»ú¿ØÖƵç·Éè¼Æ ............................................ 11 3.4ϵͳÏÔʾµç·Éè¼Æ .............................................. 11 3.5³¬Öر¨¾¯Ìáʾµç·Éè¼Æ .......................................... 12 3.6°´¼üÊäÈëµç·Éè¼Æ .............................................. 13 3.7ϵͳӲ¼þµç·µÄ»æÖÆÓëPCBÖÆ×÷ .................................. 14

3.7.1 Protel99SE¼ò½é ......................................................................................... 14 3.7.2ϵͳԭÀíͼµÄ»æÖÆ .................................................................................... 15

4 ϵͳÈí¼þÉè¼Æ ................................................................................................................. 17

4.1Ö÷³ÌÐòÁ÷³Ìͼ .................................................. 17 4.2ϵͳÏÔʾ²¿·ÖÁ÷³Ìͼ ............................................ 17 4.3°´¼ü¼ì²âÁ÷³Ìͼ ................................................ 18 5 ϵͳÕûÌåµ÷ÊÔ ................................................................................................................. 19

5.1Ó²¼þµ÷ÊÔÓöµ½µÄÎÊÌâ ............................................ 19 5.2ϵͳʵÎïµ÷ÊÔЧ¹ûͼ ............................................ 19 5.3ϵͳÉè¼Æ×ܽá .................................................. 20 ²Î¿¼ÎÄÏ× ............................................................................................................................. 21 Ö л ................................................................................................... ´íÎó£¡Î´¶¨ÒåÊéÇ©¡£ ¸½Â¼ ..................................................................................................................................... 23

¸½Â¼1ϵͳÕûÌåµç·ͼ ............................................................................................. 23 ¸½Â¼2ϵͳÉè¼ÆPCBͼ ............................................................................................ 25

III

¸½Â¼3ϵͳ²¿·ÖÔ´³ÌÐò ............................................................. ´íÎó£¡Î´¶¨ÒåÊéÇ©¡£

IV

Ð÷ÂÛ

1.1¿ÎÌâÑо¿±³¾°

Èý¹úʱÆÚ±ãÓÐÖøÃûµÄ²Ü³å³ÆÏ󣬿ɼû³ÆÖؼ¼ÊõÀúÊ·Óƾá£ÖØÁ¿²âÁ¿ÔçÒÑÔÚ¸÷¸öÁìÓòÀïÓ¦Óã¬ÈçÔÚÅ©ÒµÉú²úÉÏ£¬¿Æ¼¼Ñо¿ÉÏ£¬ÔÚ½»Í¨¹¤¾ßÉϵȵȡ£¿ÉÒÔ˵°éËæ×ÅÈËÃÇÃÜÇв»·ÖµÄ¡£µç×Ó³Ó×÷ΪһÖÖµç×ÓºâÆ÷£¬ÊÇÊܵ½¹ú¼ÒÖØÊÓµÄÒ»ÖÖ¹ú¼Ò·¨¶¨¼ÆÁ¿Æ÷¾ß¡£ºâÆ÷ÊÇÎÒÃÇÈÕ³£Éú»î°ïÉõÖÁ¸ß¿Æ¼¼ÁìÓò²»¿ÉȱÉٵļÆÁ¿É豸¡£¼ÆÁ¿Æ÷¾ßµÄˮƽ¸ßµÍ£¬½«Ó°Ïìµ½ÎÒ¹úµÄ¸÷¸ö·½Ã棬ӰÏìÉç»áµÄ¾­¼ÃЧÒæ¡£³ÆÖØ×°Öû¹ÍƽøÁ˹¤Òµ·½Ã棬ÈçÔÚ×Ô¶¯»¯·½Ã棬¹¤Òµ¹ÜÀí·½Ãæ¡£ÓÐÁËÒ»¸ö¾«È·£¬¼ò±ãµÄ¼ÆÁ¿ÒÇÆ÷£¬ÎÒÃÇ¿ÉÒÔ¼õÉÙ¹¤×÷ʱ¼ä£¬¹¤×÷Á¦¶È£¬¸ÄÉƹ¤×÷·½Ê½£¬½µµÍÈËÁ¦ºÍÎïÁ¦µÄͶÈëµÈ¡£ÔÚÎÒ¹ú¹úÃñ¾­¼ÃµÄ¸÷¸öÁìÓò¶¼»áÓõ½³ÆÖع¤¾ß£¬È¡µÃÁ˷dz£ºÃµÄ¾­¼ÃЧÒæ¡£

1.2¿ÎÌâÑо¿Ä¿µÄºÍÒâÒå

µç×Ó³ÓÏà½ÏÓÚ»úе³ÓÌå»ý¸üС¡¢ÖØÁ¿¸üÇá¡¢½á¹¹±È½Ï¼òµ¥¡¢¹¦ÄÜÐÔÇ¿¡¢Î¬»¤Ò²¸ü·½±ã£¬¿ÉÒÔ³ÆÁ¿Ò»Ð©²»¹æÔòµÄ£¬»·¾³ÏÞÖƲ»±ãÓÚ²âÁ¿µÄÎïÆ·¡£¶ÔÖØÁ¿Êý×Ö»¯ÏÔʾ·½±ãÊý¾Ý¼Ç¼¼°Æä´¦Àí´Ó¶øʵÏÖÊý¾Ý´«Êä´ïµ½×Ô¶¯»¯Éú²ú¹ý³ÌµÄÄ¿µÄ£¬ºÍ¼ÆËã»úÁªÍø½øÐи÷¸öÉú²ú»·½ÚµÄ¿ØÖÆ´Ó¶ø¶ÔÌá¸ßÀͶ¯Éú²úÂÊÒâÒå¾Þ´ó¡£×ݹÛÊÀ½ç£¬ºâÆ÷¼¼Êõ·¢Õ¹¾­ÀúÁËÔ¼Ëĸö½×¶Î£¬´Ó´«Í³µÄ»úе³Æµ½»úµç½áºÏ³Ó£¬ÔÙ´Ó¶Ô»úµç½áºÏ³Ó¸Ä½øºó¶ø²ÉÓü¯³Éµç·µ½ÏÖ´úµÄ»ùÓÚµ¥Æ¬»úϵͳÉè¼ÆµÄµç×Ó³Ó¡£¹úÄÚÆð³õµÄ»úµç½áºÏÐÍ·¢Õ¹ÎªÄ¿Ç°µÄÊý×ÖÖÇÄÜÐÍ£¬ÊµÏÖÁ˼Æʱ¡¢×ܼۡ¢ÓïÒô±¨¼ÛµÈµÈ¶àÖÖ¹¦ÄܵĻã×Ü¡£Ä¿Ç°µç×Ó²âÖؼ¼ÊõÓÐÁËеķ¢Õ¹£ºµç×Ó³ÆÖؼ¼Êõ¾²¶¯Ì¬²âÁ¿µÄת»»£»¼ÆÁ¿·½Ê½ÓÉÄ£Äâµ½Êý×ÖµÄת»»£»¶à²ÎÊý²âÁ¿µÃµ½¹ã·ºÓ¦Óá£ÄÜʵÏֶ๦ÄܾÛÓÚÒ»ÉíµÄÏȽøµÄÖÇÄÜÒÇÆ÷ÒDZíÈ¡´úÁ˳£¹æµÄ±ÈÈç¸ù¾Ý¸Ü¸ËÔ­Àí»òµ¯Á¦ÏµÊýÀ´²âÁ¿µÄÀÏʽÆ÷¾ß£¬Ê¹µÃ³ÆÖØʵÏֶ๦ÄÜ¡¢¸ß¾«¶È×Ô¶¯»¯¿ØÖÆ£¬²¢³öÏÖÁ˶àÖÖ¶àÑùÖÇÄÜÒÇÆ÷¿ØÖÆϵͳ£¬´Ó¶øÔÚ¿ÆÑÐÒÔ¼°Êµ¼ÊÓ¦ÓõÄ×Ô¶¯»¯³Ì¶È»ñµÃ¸ü´óÌáÉý¡£

1.3¿ÎÌâÑо¿µÄÖ÷ÒªÄÚÈÝ

µç×Ó³ÆÖØÔ­ÀíµÚÒ»²½Êǽ«Ñ¹Á¦´«¸ÐÆ÷²É¼¯µÄÎïÌåÖØÁ¿ÐźÅת»»ÎªµçѹÐźš£¶ÔÆäËù²âµÃµÄÐźŷŴ󣬾­¹ý·Å´óºóµÄÄ£ÄâÁ¿Í¨¹ýA/Dת»»µÄ·½Ê½×ª»»³ÉÊý×ÖÁ¿£¬½ø¶ø½«ÆäËÍÈëµ½µ¥Æ¬»úÖУ¬ÔÙÓɵ¥Æ¬»ú´¦ÀíºóÓÉÒëÂëÏÔʾÆ÷¶øÏÔʾÆäÖØÁ¿¡£¸ù¾ÝÐèÒª£¬ÏµÍ³ÓÉÈý´óÄ£¿é×é³É£¬¿ØÖÆÆ÷Ä£¿é¡¢Êý¾Ý²É¼¯Ä£¿éºÍÈË»ú½»»¥Òº¾§ÏÔʾ½çÃæÄ£¿é¡£¾­×ª»»

µÚ 1 Ò³ ¹² 30 Ò³