¾«Æ·»ùÓÚ´®¿ÚͨÐŵIJ½½øµç»úµ÷ËÙϵͳÉè¼Æ-¶¨ - ͼÎÄ

Ìâ Ä¿£º»ùÓÚ´®¿ÚͨÐŵIJ½½øµç»ú

µ÷ËÙϵͳÉè¼Æ

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

»ùÓÚ´®¿ÚͨÐŵIJ½½øµç»úµ÷ËÙϵͳÉè¼Æ

Õª Òª

±¾Éè¼Æ·½°¸ÖвÉÓûùÓÚ´®¿ÚͨÐŵÄAT89C51Ð͵¥Æ¬»úÄÚ²¿µÄ¶¨Ê±Æ÷¸Ä±äCPÂö³åµÄƵÂÊ´Ó¶øÊµÏÖ¶Ô²½½øµç»úµÄתËÙ½øÐпØÖÆ£¬ÊµÏÖµç»úµ÷ËÙÓëÕý·´×ªµÄ¹¦ÄÜ¡£

ÔÚʵÑéÊҺ͹¤ÒµÓ¦ÓÃÖУ¬´®¿ÚÊǼÆËã»úÓëÍⲿ´®ÐÐÉ豸֮¼äµÄÊý¾Ý´«ÊäͨµÀ£¬ÓÉÓÚ´®ÐÐͨÐÅ·½±ãÒ×ÐУ¬ËùÒÔÓ¦Óù㷺¡£

ÔÚVC++6.0µÄ»·¾³Ï£¬±àдʹÓÃCÓïÑÔ£¬´®¿ÚͨÐųÌÐò£¬Óɵ¥Æ¬»ú¿ØÖƵIJ½½øµç¶¯»úµÄתËÙ¡£µ±Óɵ¥Æ¬»ú¿ØÖƵIJ½½øµç¶¯»úµÄתËٵŤ×÷Êý¾ÝÓÉ´®¿Ú´«µ½¼ÆËã»úʱ£¬²Ù×÷ÈËÔ±Äܹ»ÊµÊ±¼à¿ØÆä¹¤×÷״̬£¬¹¤×÷Êý¾Ý£¬¸ù¾ÝÇé¿ö£¬²¢Äܸü¸ÄÆä¹¤×÷²ÎÊý¡£ÕâÑù£¬¾ÍʹµÃ¿ØÖƲ½½øµç»úµÄתËÙ¡£¶øµç»úµÄתËÙÈ¡¾öÓÚÂö³åÐÅºÅµÄÆµÂʺÍÂö³åÊý£¬¶ø²»ÊܸºÔر仯µÄÓ°Ï죬¼´¸øµç»ú¼ÓÒ»¸öÂö³åÐźţ¬µç»úÔòת¹ýÒ»¸ö²½¾à½Ç£¬ËùÒÔ²½½øµç»úÿ¸øÒ»¸öÂö³å¾Íת¶¯Ò»¸ö¹Ì¶¨µÄ½Ç¶È£¬ÕâÑù¾Í¿ÉÒÔͨ¹ý¿ØÖƲ½½øµç»úµÄÒ»¸öÂö³åµ½ÏÂÒ»¸öÂö³åµÄʱ¼ä¼ä¸ôÀ´¸Ä±äÂö³åµÄƵÂÊ£¬ÑÓʱµÄ³¤¶ÌÀ´¾ßÌå¿ØÖÆ²½½ø½ÇÀ´¸Ä±äµç»úµÄתËÙ£¬´Ó¶øÊµÏÖ²½½øµç»úµÄµ÷ËÙ¡£

¹Ø¼ü´Ê£º²½½øµç»úµ÷ËÙ£»µ¥Æ¬»ú£»´®¿ÚͨÐÅ£»VC++

I

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

The stepper motor speed control system based on

serial communication

Abstract

The design of serial communication based on AT89C51 single-chip microcomputer-based timer to change the internal pulse frequency of CP in order to achieve the speed of stepper motor control with the positive realization of motor function.

In the laboratory and industry field, the computer serial port and external serial device data transmission between the channels, as a result of user-friendly serial communication lines, so a wide range of applications.

In VC + +6.0 environment, prepared using the C language, serial communication procedures by the single-chip microcomputer to control the speed of the stepper motor. When controlled by the single-chip stepper motor speed the work of the serial data transmitted by the computer, the operator can work in real-time monitoring of its status, the work of data, depending on the circumstances and can change its operating parameters. This allows control of stepper motor speed. Depends on the speed of the electrical pulse frequency and pulse number, and not subject to the impact of changes in load, that is, to add an electrical pulse signal, a step motor is turned away from the angle, the stepper motor is a pulse on each rotation of a fixed point of view so that you can control the stepper motor through a pulse to pulse the next time interval to change the pulse frequency, the length of delay to a specific angle in order to change control of stepper motor speed, the stepper motor in order to achieve Speed.

Keywords: Stepper motor; Singlechip; Serial communication; Visual C++

II

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

Ŀ ¼

Õª Òª ......................................................................................................................................... I Abstract ...................................................................................................................................... II Ä¿ ¼ ...................................................................................................................................... III µÚÒ»Õ ¸ÅÊö .............................................................................................................................. 1

1.1¿ª·¢±³¾°¼°·¢Õ¹Ç÷ÊÆ ................................................................................................. 1 1.2¹¦ÄÜÒªÇó¼°¹¦ÄÜʵÏÖ¸ÅÊö ......................................................................................... 2 µÚ¶þÕ ϵͳ½á¹¹µÄʵÏÖÓë²½½øµç»úµÄÇý¶¯ .......................................................................... 3

2.1ÕûÌåÓ²¼þ½á¹¹ .............................................................................................................. 3 2.2ϵͳӲ¼þµç·Éè¼Æ ...................................................................................................... 3

2.2.1Ó²¼þµÄ»ù±¾×é³É ............................................................................................... 3 2.2.2µç·ͼ ............................................................................................................... 3

2.2.2.1¾§Õñµç· ................................................................................................ 4 2.2.2.2¹âµç¸ôÀëÆ÷ ............................................................................................ 5 2.2.2.3 MAX232µÄ½éÉÜ .................................................................................... 6 2.2.3 PCB°åµÄÉú³É ................................................................................................... 6 2.3²½½øµç»úµÄ½á¹¹Ìصã .................................................................................................. 7

2.3.1·´Ó¦Ê½²½½øµç»úµÄ½á¹¹ ................................................................................... 7 2.3.2 ·´Ó¦Ê½²½½øµç»úµÄ¹¤×÷Ô­Àí .......................................................................... 8 2.3.3 ·´Ó¦Ê½²½½øµç»úµÄ²½½ø·½Ê½ .......................................................................... 9 2.3.4 ²½½øµç¶¯»úµÄÖ÷ÒªÐÔÄÜÖ¸±ê ........................................................................ 10 2.3.5²½½øµç¶¯»úµÄÔËÐÐÌØÐÔ ................................................................................. 11 2.3.6²½½øµç»úµÄÑ¡ÐÍ ............................................................................................. 13 2.4²½½øµç»úÇý¶¯µç· .................................................................................................... 14

2.4.1µ¥µçѹÇý¶¯ ..................................................................................................... 14 2.4.2 Ë«µçѹÇý¶¯ .................................................................................................... 15 2.4.3 Õ¶²¨Çý¶¯ ........................................................................................................ 16 2.4.4 ϸ·ÖÇý¶¯ ........................................................................................................ 17 2.4.5 ¼¯³Éµç·Çý¶¯ ................................................................................................ 17

III

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ìæ»»Îª@)