球—杆测控系统开发与研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
球杆是一个典型的非线性、不稳定、机电耦合系统,对研究动态系统建模及验证控制算法的稳定性、快速性、准确性具有重要的意义。国内外诸多学者主要在球杆建模与数字仿真及控制等方面做了大量的工作。随着控制算法的复杂化,其通信系统中普遍采用的RS232接口在数据采集频率、实时性能等方面的弊端日益明显。
     本研究旨在通过设计并实现自己的球杆测控系统软硬件平台:基于USB (Universal Serial Bus)接口的上下位机通信;基于MCU的下位机测控平台;基于LabVIEW的上位机软件测控平台。本论文的具体工作体现在以下几个方面:
     1.在分析固高球杆测控系统在通信速度、可靠性、易用性不足的基础上,针对球杆测控平台的设计目标提出一种基于USB的优秀嵌入式解决方案,并对设计目标中电机驱动能力和采样频率的正确性进行了验证。
     2.测控系统以微控制器为核心,扩展了计数模块以实现与光电编码器的电机转速测量传感器接口,扩展了模拟量采集模块以实现与球在杆上的位置测量传感器接口,扩展了功率驱动模块以直接驱动直流电动机,扩展了USB功能模块以实现与上位机之间的实时数据通信。
     3.以Keil C51为固件程序开发平台,下位机测控程序采用汇编语言与C语言混合编程的方式,设计并优化了USB固件程序、数据采集程序和直流伺服电机驱动程序,实现测控系统的通信、数据采集以及控制功能。
     4.以LabVIEW为人机界面和控制算法运行环境,利用其库函数结点建立了上位机应用程序与USB驱动程序之间的函数调用,完成球杆系统的文件化操作,界面友好,数据的存贮、处理、可视化显示功能强大。
     5.以NI ELVIS虚拟示波器及其配套硬件为试验调试平台,以BusHound和IRPTrace为枚举过程监测软件,优化上下位机程序,达到提高通信速率和数据可靠性的目的,最后对测控系统的各项性能指标进行了测试,达到球杆系统的控制要求,系统运行稳定、可靠。
Ball-beam is a non-linear, unstable, mechanical and electrical combination system; it is of great significance to the research of the dynamic system modeling and to verifying the stability, the rapidity, the accuracy of control algorithm. Many researchers have done a lot of work in the modeling and the digital simulation of ball-beam system at home and abroad. However, with the complexity of control algorithm, the shortcomings of RS232 in data acquisition frequency and real-time communication performance become increasingly obvious.
     This research is to design and realize the measurement and control system for the ball-beam system:the communication between PC and MCU is based on USB (Universal Serial Bus); the measurement and control platform is based on MCU; the PC software platform is based on LabVIEW. This thesis has accomplished the following work::
     1. After analysing some drawbacks of RS232 in communication speed, reliability, and usability this thesis uses an embedded solution based on USB, which is proved to satisfy the demands for the motor drive capacity and the sampling frequency.
     2. The subordinate measurement and control system is based on a micro-controller system, which includes a counting module to measure the motor speed through the two-phase encoder, and an analog acquisition circuit to measure the ball's position on the beam, and a power-driving module to drive DC motor, and a USB function module in order to achieve real-time data communication with the host computer.
     3. With Keil C51 as the software development kit, the measurement and control program is a combination of assembly program and C program, which includes the USB firmware, the data acquisition program, and the program for driving the DC servo motor, to accomplish the function of the measurement and control system in communication, data acquisition, and control.
     4. The human-machine/operator interface is based on LabVIEW which is also used to accomplish the control algorithm. The LabVIEW-based interface is friendly with a great data-visualizing function. The connection between the LabVIEW program and the Windows driver software is established by using the library function nodes of LabVIEW, which makes it easy to operate the ball-beam system just like operating a file document on the computer.
     5. Taking NI ELVIS virtual oscilloscope and its supporting hardware as a debugging platform, and BusHound and IRPTrace as a monitoring software for the enumeration procedure, we optimized the application program on PC and MCU to achieve faster speed and higher reliability of data communication. The performance of the measurement and control system is tested, which shows a successful, stable and reliable system.
引文
[1]邢义忠.基于LabVIEW的球杆系统虚拟试验平台开发:[硕士学位论文].长沙:中南大学,2007
    [2]魏学锋.基于LabVIEW的球杆系统建模、仿真及实验研究:[硕士学位论文].长沙:中南大学,2008
    [3]BMichael G. Lorenz, Luis Mengibar, Enrique SanMillan, et al. Low power data processing system with self-reconfigurable architecture. Journal of Systems Architecture,2007,53(9):568-576
    [4]Alessandro Cabrini, Laura Gobbi, et al.A compact low-cost test equipment for thermal and electrical characterization of integrated circuits. Measurement,42(2):281-289
    [5]Depari A, Flammini A, Marioli D, et al. USB sensor network for industrial applications. IEEE Transactions on Instrumentation and Measurement,2008,57 (7):1203-1207
    [6]Bai Xiaoping, Wei Yuanfeng. Fault-Tolerant Design and Testing of USB2.0 PeripheralDevices IP Core System. Tsinghua Science and Technology,2007,12(1):231-234
    [7]Implementers Forum. USB1.1. Universal Serial Bus Specification 1.1. http//www.usb.org,1998
    [8]黄辉.USB3.0技术发展和展望.大众硬件,2008,10:78-82
    [9]尽如人意.让你的传输速度“飞”起来——新一代USB3.0规格解析.现代计算机,2009,1:30-31
    [10]Khalil M I. A USB-based data acquisition system for neu-tron TOF measurements. Measurement Science and Tech-nology,2006,17(1):1-7
    [11]刘益成.USB接口技术-USB简介.石油仪器,2002,16(1):57-58
    [12]陈启美,王刚,等.USB技术概况.电子自动化设备,2001,21(2):55-59
    [13]罗培强.USB2.0收发器物理层芯片电路设计:[硕士学位论文].上海:上海交通大学,2006
    [14]omoaki Kouyama,Hibiki Nano,et al. The Design of a USB Device Controller IYOYOYO. Asia and South Pacific Design Automation Conference 2003, 2003,573-574
    [15]彭建刚.球杆系统的模糊控制研究.工业控制与应用,2008,27(3):48-50
    [16]李克平,史鹏飞,等.自适应遗传PID控制算法在球杆系统中的应用.自动测量与控制,2008,27(7)54-57
    [17]胖永新.鲁棒控制理论在球杆系统中的应用:[硕士学位论文].武汉:武汉大学,2005
    [18]F. Andreev,D.Auckly, S. Gosavi, et al. Matching, linear systems, and the ball and beam. Automatica,2002,38:2147-2152
    [19]Sung-Kwun Oh, Han-Jong Jang, Witold Pedrycz. The design of a fuzzy cascade controller for ball and beam system:A study in optimization with the use of parallel genetic algorithms. Engineering Applications of Artificial Intelligence,2009,22:261-271
    [20]Marton. L, Lantos. B. Stable Adaptive Ball and Beam Control.2006 IEEE International Conference on Mechatronics,2006,6:507-512
    [21]D. J. Leith, W. E Leithead, Input-output linearization of nonlinear systems with ill-defined relative degree:the ball and beam revisited, in American Control Conference,2001. Proceedings of the 2001, Volume: 4,2001,pp.2811-2816
    [22]刘爽.模糊PID控制器用于直流电机的控制.哈尔滨理工大学学报,1997,2(5):36-39
    [23]尹勇王洪成编著.单片机开发环境u Vision2使用指南及USB固件编程与调试.北京:北京航空航天大学出版社,2004
    [24]Wellstead, P. E., Chrimes, V., et al.The ball and beam control experiment.International Journal of Electrical Engineering Education,1978,15(1):2139
    [25]黄学鹏,周飞,徐伟.USB同步传输方式在多路实时数据采集中的应用.微计算机应用.2007,(05):524-528
    [26]冯海涛,刘宝娟,王晓君.开发WDM型USB设备驱动程序.微处理机.2008,2:174-178
    [27]周立功编著.PDIUSBD12 USB固件编程与驱动开发.北京:北京航空航天大学出版社,2003.
    [28]Gorge, Mathieu. USB and other portable storage device usage. Computer Fraud and Security.2005, (8):15-17
    [29]Karon E. MacLean, Micheal J. Shaver. Handheld Haptics:A USB Media Controller with Force Sensing. Computer Society.2002, (1):1-8
    [30]周涛,张辉,采用PDIUSBDI2的USB系统固件程序设计.电子技术应用,2003.5:70-72
    [31]A. Gola, C. Fiorini, M. Porro, M. Zanchi. The electronics readout and the DAQ system of the DRAGO Anger Camera. Nuclear Instruments and Methods in Physics Research,2007,571(1-2):339-342
    [32]余姜德,于志平.基于Windows98/2000平台的USB驱动程序开发.现代计算机(专业版),2004,5:74-77
    [33]Chen Yu, Zhang Haijun, Wang Na. Body Temperature Monitor and Alarm System Used in Hospital Based on 1-wire and Wireless Communication Technology.2008
    [34]鲜浩,任爱芝,盛仲飚.增量式编码器数据采集,华北工学院学报,2003,2(24):142-143
    [35]缪晓中.一种基于Intel8253与L298N的电机PWM调速方法.国外电子元器件,2005,12:26-28
    [36]潘明东.光电编码器输出脉冲的几种计数方法.电子工程师2004,30(8):69-71
    [37]曲婧华,张永顺.基于CPLD控制的多路数据自动采集系统设计.空军工程大学学报(自然科学版),2007,7(2):36-38
    [38]吴占涛,张桂香.基于LabVIEW的直流伺服电机模糊PID控制系统.机电一体化,2008,5:43-49
    [39]付秀泉,潘佚,李秀峰,王志江.直流伺服电机转好到轨输出的PWM驱动电路设计.江南大学学报,2009,8(1):15-19
    [40]游志宇,杜杨,张洪,董秀成.基于场效应管的直流电机驱动控制电路设计.国外电子元器件,2008,2:3-6
    [41]戴玉光,对PWM技术实现方法的探讨.民营科技,2008,5:32
    [42]缪晓中.一种基于Intel8253与L298的电机PWM调速方法.国外电子元器件,2005,12:26-28
    [43]李永义,窦满锋,刘卫国,马瑞卿.8253在步进电动机运动控制系统中的应用.微电机,2002,35(25):33-35
    [44]刘仕良,方建军.基于运动控制芯片的机械手控制系统设计.单片机与嵌入式系统应用,2005,5:54-56
    [45]程谰,杨子杰.基于PDIUSBD12的USB设备固件程序开发.计算机应用,2004,24(7):150-152
    [46]Philips. Firmware Programming Guide for PDIUSBD12 Version 1.0.1998
    [47]魏英钦,陈连坤.基于PDIUSBD12的USB高速数据传输.单片机与嵌入式系统应用.2006,9:74-76
    [48]周立功等著.PDIUSBD12 USB固件编程与驱动开发.北京:北京航空航天大学出版社,2003
    [49]周祥萍,韩忠良,李铁军.可编程定时/计数器8253的方式控制字及应用.煤炭技术,2005,24(5):46-47
    [50]李恒灿,侯艳君.基于可编程定时/计数器8253在生产中的应用.现代制造技术与装备,2006,3:57-69
    [51]顾斌,陈忧先.LabVIEW中带参数输入的动态连接库的调用.仪表技术,2007,6:9-13
    [52]黄青锋,刘强.基于USB和LabVIEW的数控切削过程数据采集和分析系统设计.制造业自动化,2006,28(1):46-49
    [53]刘晓明.基于LabVIEW的USB多通道数采卡实时测试系统开发.仪器仪表标准化与计量,2005,6:19-32
    [54]杨灵,周正达,张蕴玉.基于USB和LabVIEW开发平台的虚拟仪器的设计.计算机与数字工程,2007,35(3):172-178
    [55]刘瑞玲,徐瑾,苟浩锋.基于VB的API函数的应用.内江科技,2008,5:142-143
    [56]赵仕元.Visual Basic 6.0对API函数引用的方法.机械工程与自动化,2008,3:173-174
    [57]魏鲁原,崔霞.基于PDIUSBD12的USB控制器的设计.徐州工程学院学报,2007,22(10):19-22
    [58]徐华中,冯波.基于PDIUSBD12芯片的USB模块设计.武汉理工大学学报,2008,30(2):225-239
    [59]张安生.PDIUSBD12在USB接口设计中的应用探析.中国现代教育装备,2008,2:30-31
    [60]黄煌,姜义,成林力.基于PDIUSBD12的USB接口设计及应用.微计算机信息,2007,23(4-2):183,292-293
    [61]刘成耀.光栅尺检测台检仪USB接口电路设计:[本科生毕业论文(设计)].长沙:中南大学,2006
    [62]Yu Chen.Research and Design of Intelligent Building Distributed Circumstance Monitor System Based on Wireless Communication.2008 Second International Symposium on Intelligent Information Technology Application,2008:750-754
    [63]朱传宏.基于USB的数据采集与处理系统设计:[硕士学位论文].哈尔滨:哈尔滨工业大学,2007,7
    [64]Wen Xinling, Liu Zhaoyu.Design of Inspecting System Based on MSP430F149 SCM and Wireless Communication Technology.2008 International Seminar on Future BioMedical Information Engineering, 2008:231-234
    [65]万福君,潘松峰等.单片微机原理系统设计及应用(第二版).合肥:中国科学技术大学出版社,2004
    [66]于增安,周春阳.光电耦合器4N25非线性与线性应用.沈阳工程学院党报(自然科学版),2006,2(2),147-148
    [67]程开富.光电耦合器的应用技术探讨.电子元器件应用,2001,3(10)28-31
    [68]魏丽丽,邓志杰,孙传庆.线性光耦合隔离放大器LIA的应用.2005,21(3),116-117
    [69]51单片机实验网.光电耦合器的应用电路http://www.51mculab.com/labzl/upimg/%E5%85%89%E7%94%B5%E8%80%A6%E 5%90%88%E5%99%A8%E7%9A%84%E5%BA%94%E7%94%A8%E7%94%B5%E8%B7%AF. pdf .2009-07-03/2009-10-02
    [70]刘仕良,方建军.基于运动控制芯片的机械手控制系统设计.单片机与嵌入式系统应用,2005,5:54-56
    [71]赵庆松,苏敏.基于ARM的直流电机调整系统的设计与实现.微计算机信息,2007,23[1-2]:173-175
    [72]张萍.基于USB接口的高增益数据采集系统.微计算机信息2008,24(3-2):155-156,207
    [73]颜浩洋,李见为,颜永龙.嵌入式指纹自动识别系统USB接口的设计与实现.电子技术应用,2007,9:52-54
    [74]张安生.PDIUSBD12在USB接口设计中的应用探析.中国现代教育装备,2008,2:30-31
    [75]于绍娜,李冶,蔡学森,杨智君.动态链接库技术在虚拟仪器开发中的应用.计算机工程与应用2004,20:114-192
    [76]梁庆中,王广君,夏益民.虚拟仪器设计中LabVIEW与Win32.API的混合编程.现代电子技术,2004,12:72-74
    [77]胡晓军,张爱成.USB接口开发技术.西安:西安电子科技大学出版社,2005.5
    [78]魏英钦,陈连坤.基于PDIUSBD12的高速数据传输.单片机与嵌入式系统应用,2006,9:74-76
    [79]固高(深圳)有限公司.球杆系统GBB1004用户手册及实验指导(第二版).深圳:固高科技,2006

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700