»ùÓÚµ¥Æ¬»úµÄתËÙ²âÁ¿ÏµÍ³

Õª Òª

±¾ÂÛÎĽéÉÜÁËÒ»ÖÖ»ùÓÚAT89C51µ¥Æ¬»úƽ̨,²ÉÓùâµç´«¸ÐÆ÷½øÐеç»úתËÙ²âÁ¿µÄ·½·¨,½éÉÜÁ˸òâËÙ·¨µÄ»ù±¾Ô­Àí¡¢ÊµÏÖ²½ÖèºÍÈíÓ²¼þÉè¼Æ¡£ÎªÁËÉè¼Æ¼òµ¥¿É¿¿µÄÖ±Á÷µç»ú²âËÙ×°Öã¬Ìá³öÁË»ùÓÚµ¥Æ¬»úΪºËÐĵĵç»úתËÙ²âÁ¿ÏµÍ³¡£Õû¸öϵͳµÄ¹¹¼Ü°üÀ¨×ªËÙÐźŵIJɼ¯£¬¹âµçת»»¼°ÐźŴ¦Àíµç·Éè¼Æ£¬ÕûÐÎÇý¶¯µç·Éè¼Æ£¬¸´Î»µç·Éè¼Æ£¬¾§Õñµç·Éè¼Æ£¬LEDÏÔʾµç·Éè¼Æ¡£ÕûÐηŴóµç·Ö÷ÒªÊǽ«´«¸ÐÆ÷Êä³öµÄ²»Îȶ¨µÄµçÐźÅת»¯³ÉÂö³åÐźÅ; תËٵļÆËãÀûÓõ¥Æ¬»úAT89C51 µÄ¶¨Ê±Æ÷ºÍ¼ÆÊýÆ÷¡£¸ù¾Ýϵͳ±àдԴ³ÌÐò£¬²¢Í¨¹ýÔËÐÐÊÔÑéÖ¤Ã÷¡£¸Ãϵͳ½á¹¹¼òµ¥£¬²âÁ¿½á¹ûÎȶ¨¿É¿¿£¬Âú×ãµç»úµÄ²âËÙÒªÇó¡£

¹Ø¼ü´Ê£º×ªËÙ²âÁ¿£»µ¥Æ¬»ú£»¹âµç´«¸ÐÆ÷£»µç»ú

I

Abstract

This paper introduces a platform based on AT89C51, adopt the method of photoelectric sensor to implement motor speed measurement, introduces the basic principle of the speed measuring method, implementation steps and the hardware and software design. In order to design a simple and reliable device for dc motor speed estimation, motor speed measurement system based on single chip microcomputer as the core is put forward. The architecture of the whole system including the speed signal acquisition, rotation speed signal processing, speed calculation and display. Plastic amplifying circuit is mainly the sensor output with outside noise of the unstable signal into pulse signal; Rotational speed of the calculation of AT89C51 single-chip timer and counter. Write the source program according to the system, and by running the experiment proved that the system has simple structure, stable and reliable measurement results, satisfy the requirement of the motor speed.

Keywords£ºSpeed measurement; Single chip microcomputer; Photoelectric sensor;

The motor

II

Ŀ ¼

1 ¸ÅÊö .......................................................... 1 1.1Êý×Ö»¯×ªËÙ²âÁ¿ÏµÍ³µÄ·¢Õ¹±³¾°............................... 2 1.2 ±¾Éè¼Æ¿ÎÌâµÄÄ¿µÄºÍÒâÒå .................................... 2 2 תËÙ²âÁ¿ÏµÍ³µÄÔ­ÀíÓë·½·¨ ...................................... 3 2.1תËÙ²âÁ¿Ô­Àí............................................... 3 2.2תËÙ²âÁ¿·½·¨............................................... 3 3 ϵͳ·½°¸Ìá³öºÍÂÛÖ¤ ............................................ 5 3.1·½°¸Éè¼Æ................................................... 5 3.2ϵͳԭÀí................................................... 5 4 ϵͳӲ¼þÉè¼Æ .................................................. 7 4.1 תËÙÐźŲɼ¯ .............................................. 7 4.2¹âµçת»»¼°ÐźŴ¦Àíµç·Éè¼Æ................................. 8

4.2.1ÕûÐÎÇý¶¯µç·Éè¼Æ ...................................... 9 4.3µ¥Æ¬»úAT89C51½éÉÜ......................................... 9 4.4 ×îСϵͳµÄÉè¼Æ .......................................... 11

4.4.1¸´Î»µç·Éè¼Æ ......................................... 11 4.4.2 ¾§Õñµç·Éè¼Æ......................................... 13 4.5ÏÔʾ²¿·Öµç·Éè¼Æ.......................................... 14 5 ϵͳÈí¼þÉè¼Æ ................................................. 16 5.1 Ö÷³ÌÐò³õʼ»¯ ............................................. 16 5.2Ö÷³ÌÐòÁ÷³Ìͼ×Ó³ÌÐòÁ÷³Ìͼ.................................. 16 5.3ϵͳ×ܳÌÐò................................................ 17 ×Ü ½á............................................................ 20 ²Î¿¼ÎÄÏ×......................................................... 21 Ö л............................................................ 22

1

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