ǶÈëʽPID¿ØÖÆÆ÷Ó²¼þÉè¼Æ_×Ô¶¯»¯×¨ÒµÂÛÎÄ·¶ÎÄ
·¢²¼Ê±¼ä£º
2015-01-18
À´Ô´£º
ÈË´ó¾¼ÃÂÛ̳
×Ô¶¯»¯×¨ÒµÂÛÎÄ·¶ÎÄ
Ŀ ¼
Õª ÒªI
AbstractII
1 Ð÷ÂÛ1
1.1 PIDµÄ¸ÅÊö1
1.2 ǶÈëʽϵͳ¸ÅÊö1
1.2.1 ARM´¦ÀíÆ÷2
1.2.2 ǶÈëʽLinux4
1.3 ±¾ÎĵÄÖ÷ÒªÑо¿ÄÚÈÝ5
2 ǶÈëʽPID¿ØÖÆÆ÷ÍâΧӲ¼þÉè¼Æ6
2.1 ϵͳ×ÜÌåÔÀí6
2.2 µçÁ÷µçѹת»»µç·6
2.3 µçѹµçÁ÷ת»»µç·7
2.4 ´¥ÃþÆÁ½Ó¿ÚÓ²¼þµç·9
2.5 ±¾ÕÂС½á9
3 ǶÈëʽLinux¿ª·¢»·¾³µÄ½¨Á¢10
3.1 ¿ª·¢»·¾³µÄ¼òÊö10
3.2 ¿ª·¢»·¾³µÄÅäÖÃ10
3.3 ǶÈëʽLinuxÄں˵ÄÅäÖúͱàÒë13
3.4ǶÈëʽLinuxÄں˵Ĺ̻¯ºÍÔËÐÐ15
3.5±¾ÕÂС½á15
4 É豸Çý¶¯³ÌÐò½éÉÜ16
4.1 É豸Çý¶¯¸ÅÊö16
4.2 Çý¶¯³ÌÐòÓëÓ¦ÓóÌÐòµÄÇø±ð17
4.3 ×Ö·ûÉ豸Çý¶¯³ÌÐòµÄ±àд17
4.4 ±¾ÕÂС½á19
5 ADÇý¶¯³ÌÐòÉè¼Æ20
5.1 ADÇý¶¯³ÌÐòÁ÷³Ìͼ20
5.2 ADÇý¶¯³ÌÐò20
5.3 Ìí¼ÓADÇý¶¯³ÌÐò½øÄÚºË25
5.4 ±¾ÕÂС½á27
6 PWMÇý¶¯³ÌÐòÉè¼Æ28
6.1 PWMÇý¶¯³ÌÐòÁ÷³Ìͼ28
6.2 PWMÇý¶¯³ÌÐòµÄÉè¼Æ28
6.3 Ìí¼ÓPWMÇý¶¯³ÌÐò½øÄÚºË29
6.4 ±¾ÕÂС½á29
7 ´¥ÃþÆÁÇý¶¯³ÌÐòÉè¼Æ30
7.1´¥ÃþÆÁÇý¶¯³ÌÐòÁ÷³Ìͼ30
7.2 ´¥ÃþÆÁÇý¶¯³ÌÐòÉè¼Æ30
7.3 Ìí¼Ó´¥ÃþÆÁÇý¶¯³ÌÐò½øÄÚºË33
7.4 ±¾ÕÂС½á34
8 ×ܽáÓëÕ¹Íû35
×ܽ᣺35
ÊÕ»ñ£º35
Õ¹Íû£º35
Ö л36
²Î¿¼ÎÄÏ×37
Õª Òª
Ëæ×ſƼ¼µÄÈÕÐÂÔÂÒ죬ÑÐÖÆÖÇÄÜ»¯¡¢Ð¡ÐÍ»¯µÄPID¿ØÖÆÆ÷Ô½À´Ô½ÊÜÖØÊÓ¡£Ò»°ãµÄ8λ´¦ÀíÆ÷ÒѾÎÞ·¨Âú×ã´óÁ¿µÄÊý¾Ý´¦Àí£¬ÌØ±ðÊÇÔÚʵʱÐÔ¡¢¶àÈÎÎñ»¯µÄÒªÇóÏ¡£32λµÄ´¦ÀíÆ÷ÒÔÆä¸ßµÄÐԼ۱ȣ¬³öÖÚµÄÐÔÄܳÉΪÏÖÔÚ¿ª·¢²úÆ·Ê×Ñ¡µÄ¿ØÖÆÆ÷¡£
±¾ÎÄÖØµã½éÉÜÁËǶÈëʽPID¿ØÖÆÆ÷µÄÓ²¼þϵͳÉè¼Æ¡£´ËÓ²¼þϵͳÖ÷ÒªÊÇʹÓÃÐźű任µç·½«ÐźÅת»»³É´¦ÀíÆ÷»òÍⲿÉ豸ÄÜʶ±ðµÄÐźš£ÔÙͨ¹ý´¥ÃþÆÁ½øÐÐÈË»ú½»»¥£¬ÏÔʾʵʱÊý¾ÝºÍ»ñµÃÉ趨²ÎÊý¡£Ê¹ÓÃARM´¦ÀíÆ÷S3C2410À´½øÐÐPID¼ÆËãºÍÏÔʾ¸÷ÖÖÈË»ú½çÃæ¡£PID¼ÆËãºÍϵͳËùÐèµÄÊý¾Ý¶¼±ØÐëͨ¹ýµÍ²ãÉ豸Çý¶¯À´´ÓÍⲿÉ豸»ñÈ¡£¬»¹Ð뿪·¢ÉÏÊöÓ²¼þµÄÇý¶¯³ÌÐò¡£±¾ÎÄÏêϸµÄ½éÉÜÁ˵çÁ÷µçѹת»»µç·¡¢µçѹµçÁ÷ת»»µç·¡¢µÍͨÂ˲¨Æ÷µÈ´¿Ó²¼þµç·£¬Í¬Ê±Ïêϸ½éÉÜÁËADÇý¶¯¡¢PWMÇý¶¯ºÍ´¥ÃþÆÁÇý¶¯±àд¹ý³Ì¡£
¹Ø¼ü´Ê£º PID¡¢Ç¶ÈëʽLinuxϵͳ¡¢LinuxÉ豸Çý¶¯¡¢ÐźÅת»»
Abstract
Along with technical progress, the development of the small and intelligent PID control is becoming more and more important. MCUs with 8-bit CPU, cannot afford large quantity of data processing, especifically with the demand of real time£¬multi-task. While MCUs, with 32-bit CPU and the high performance-price ratio and outstanding performance, is becoming the first choice for electronic products recently.
Embedded PID controller's hardware system design is detailed introduced in this thesis. The signaltranslation electric circuit is used in this hardware system to transform the signal to another which can recognized by processor or the external devices, through the touchscreen. we can carries on the man-machine interaction, simultaneously display the real-time data and obtain the setup parameter. ARM processor S3C2410 is also used to enforce PID calculation and demonstrate kinds of man-machine contact surface. The data, which can be used in the PID computation and the system, must be obtained from the external device though the underlying devices drviers. So it is necessary to develop device driver for the hardware. This article detailed introducts the electric current voltage switching circuit¡¢voltage electric current switching circuit and lowpass filter . Also the AD driver, the PWM driver and the touchscreen driver programming process is introduced in detail.
Keywords: Digital PID, Embedded Linux Systems, Linux Device Drivers , Signal convertion