»ùÓÚµ¥Æ¬»úµÄ×ÔÐгµÀï³Ì±íÉè¼Æ

Õª Òª

Ëæ×žÓÃñÉú»îˮƽµÄ²»¶ÏÌá¸ß£¬×ÔÐгµ²»ÔÙ½ö½öÊÇÆÕͨµÄÔËÊä¡¢´ú²½µÄ¹¤¾ß£¬¶øÊdzÉΪÈËÃÇÓéÀÖ¡¢ÐÝÏС¢¶ÍÁ¶µÄÊ×Ñ¡¡£×ÔÐгµÀï³Ì±íÄܹ»Âú×ãÈËÃÇ×î»ù±¾µÄÐèÇó£¬ÈÃÈËÃÇÄÜÇå³þµØÖªµÀµ±Ç°µÄËÙ¶È¡¢Àï³ÌµÈÎïÀíÁ¿¡£Ö÷Òª²ûÊöÒ»ÖÖ»ùÓÚ»ô¶ûÔª¼þµÄ×ÔÐгµÀï³Ì±íµÄÉè¼Æ¡£ÒÔ AT89C52 µ¥Æ¬»úΪºËÐÄ£¬A44E »ô¶û´«¸ÐÆ÷²âתÊý£¬ÊµÏÖ¶Ô×ÔÐгµÀï³Ì/ËٶȵIJâÁ¿Í³¼Æ£¬²ÉÓà 24C02 ʵÏÖÔÚϵͳµôµçµÄʱºò±£´æÀï³ÌÐÅÏ¢£¬²¢Äܽ«×ÔÐгµµÄÀï³ÌÊý¼°ËÙ¶ÈÓÃLEDʵʱÏÔʾ¡£ÎÄÕÂÏêϸ½éÉÜÁË×ÔÐгµÀï³Ì±íµÄÓ²¼þµç·ºÍÈí¼þÉè¼Æ¡£Ó²¼þ²¿·ÖÀûÓûô¶ûÔª¼þ½«×ÔÐгµÃ¿×ªÒ»È¦µÄÂö³åÊý´«È뵥Ƭ»úϵͳ£¬È»ºóµ¥Æ¬»úϵͳ½«Ðźž­¹ý´¦ÀíËÍÏÔʾ¡£Èí¼þ²¿·ÖÓûã±àÓïÑÔ½øÐбà³Ì£¬²ÉÓÃÄ£¿é»¯Éè¼ÆË¼Ïë¡£¸ÃϵͳӲ¼þµç·¼òµ¥£¬×Ó³ÌÐò¾ßÓÐͨÓÃÐÔ£¬ÍêÈ«·ûºÏÉè¼ÆÒªÇó¡£

¹Ø¼ü´Ê£ºÀï³Ì/ËÙ¶È£»»ô¶ûÔª¼þ£»µ¥Æ¬»ú£»LEDÏÔʾ

Abstract

With the developing of people¡¯s life, the bicycle is not only the universal tool of transportation and substitute for walking, but becomes the first choice of entertainmenting and exercising. The bicycle mileage/speed can fulfill the basic need of people¡¯s life, so that they can learn the speed and the mileage of the bicycle. In these paper, the bicycle mileage/speed design based on the Hall element is elaborated. By AT89C52 as kernel, using A44E Hall element to measure revolution, the measure and statistic are achieved. The range informations are saved by 24C02 when the power is off, the bicycle speed can be displayed on LED. In this article, the hardware circuit and software design of bicycle mileage/speed instrument are introduced in detail. About the hardware, the pulse number is transmitted of one cycle of the bicycle into Single Chip Microcomputer system. Then the signal processed by Single Chip Microcomputer system is sent to display scream. About the software, in assemble language, the program is designed in the mode of modules. The system has simple hardware, common sub-program, and meet the demand of design.

Key words: Mileage / speed; Hall element; Single Chip Microcomputer; LED

Ŀ ¼

µÚ1Õ Ð÷ÂÛ .......................................................... 5

1.1 ¿ÎÌâ²úÉúµÄ±³¾° .............................................. 5 1.2 ¿ÎÌâµÄÖ÷ÒªÈÎÎñ¼°ÄÚÈÝ ........................................ 5

µÚ2Õ ×ÔÐгµÀï³Ì±í×ÜÌå·½°¸Éè¼Æ ....................................... 7

2.1 ÈÎÎñ·ÖÎöÓëʵÏÖ .............................................. 7 2.2 ×ÔÐгµÀï³Ì±íÓ²¼þ·½°¸Éè¼Æ .................................... 7 2.3 ×ÔÐгµÀï³Ì±íÈí¼þ·½°¸Éè¼Æ ................................... 11

µÚ3Õ ×ÔÐгµÀï³Ì±íÓ²¼þµç·Éè¼Æ ...................................... 12

3.1 ¸ÅÊö ....................................................... 12 3.2 ´«¸ÐÆ÷¼°Æä²âÁ¿ÏµÍ³ ......................................... 12 3.3 оƬ¼ò½é ................................................... 14 3.4 µ¥Æ¬»úÍâΧµç·µÄÉè¼Æ ....................................... 20

µÚ4Õ ×ÔÐгµÀï³Ì±íÈí¼þ³ÌÐòÉè¼Æ ...................................... 25

4.1 ¸ÅÊö ....................................................... 25 4.2 ×ÔÐгµÀï³Ì±í×ÜÌå³ÌÐòÉè¼Æ ................................... 25 4.3 ÖжÏ×Ó³ÌÐòµÄÉè¼Æ ........................................... 27 4.4 Êý¾Ý´¦Àí×Ó³ÌÐòµÄÉè¼Æ ....................................... 27 4.5 ÏÔʾ×Ó³ÌÐòµÄÉè¼Æ ........................................... 30

µÚ5Õ ϵͳµ÷ÊÔÓë·ÖÎö ............................................... 32

5.1 ×ÔÐгµÀï³Ì±íϵͳµ÷ÊÔ ....................................... 32 5.2 µ÷ÊÔ¹ÊÕϼ°Ô­Òò·ÖÎö ......................................... 33

½áÂÛ ................................................................ 34 ²Î¿¼ÎÄÏ× ............................................................ 35 Ö л ............................................................... 36

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ìæ»»Îª@) ËÕICP±¸20003344ºÅ-4