实验鼠跑步机调速系统的设计原理与实现方法研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本文设计了一套实验鼠跑步机的调速系统,该系统主要实现了对电机的无级调速,并可以通过上位机控制软件使跑步机按指定的速度曲线运行。本系统采用USB2.0高速串行传输协议实现上下位机的通信,并引入了虚拟仪器技术进行上位机软件的设计。在论文中详细描述了电机控制模块,USB通信模块和labview上位机软件模块的设计过程,各部分参考电路,以及相关的应用程序的设计和调试,并对各个模块和整个系统进行了分级调试。
     本文主要着力于解决以下几个问题。
     1、完成步进电机的无级调速控制,给出相应的软件编程与硬件电路的设计。在结合现在运动控制系统的基础上,采用AVR单片机对步进电机进行调速控制,完成控制软件,控制电路,驱动电路的设计。
     2、设计模块化的USB通信子系统。利用模块化的思想设计USB通信系统,连接上位机程序和下位机电机控制芯片。采用cy7c68013芯片进行USB通信,并结合USB通信协议和USB控制芯片对该模块进行功能定义,给出USB控制芯片与电机控制芯片之间的详细连接电路,以及详细的USB固件程序。
     3、采用简洁流畅的图形化程序设计软件labview设计上位机软件,其主要功能是发送电机控制数据给USB端,接收并显示采集到的数据。其中难点是USB芯片与labview连接的驱动程序,本文中采用动态链接库把两者连接起来,使数据能正常的上传下行。
     从应用的角度来看,这种以虚拟仪器面板代替传统仪器控制面板的思想在以后的测控系统中会越来越多的应用,其主要优势在于能依靠PC机强大的数据处理功能,并能通过改变虚拟仪器面板的功能而随之改变仪器的功能。
This article is the design of the speed adjustment system of the experiment mice treadmill.The main function of this system is to regulat the speed of the motor,and ensure the treadmill can be controlled by the designed running speed curve through the PC software.The high speed USB2.0 communication module is used to accomplish the communication between the up and down system.The pc software is designed by the virture instrument idea.This paper contains the details of the mechanical system,motor control system,USB communication module and the labview PC software,include the circuit,mechanical design and some program.
     This paper is focusing on the three parts below.
     Firstly,to accomplish the non-classic speed modularation of the step motor.And design the software and hardware of the speed modularation system.On the basic of the speed control system we already known,design the speed control system by the AVR.chip,to fulfill the control part,driver part and the control software.
     Secondly,design the USB communicat sub-system.Use the Modular design idea to design the USB communication system to connect the motor control system and the PC software.Choose the Cy7c68013 chips to fulfill the USB communication module, combined the USB communication protocol with the USB controller chips on the module functions definition,design the USB firmware and the detail circuit between USB control chip and motor control chip.
     Thirdly,use the simp figure design software design the PC software.Its main function is to send data to the motor control USB terminal,to receive and display the data has been collected.Drivers between the USB chip and labview is difficult,the dynamic link library is used to link the two,so that data can be fluently between the up and down system.
     From the application point of view,it will be more and more applications that virtual instrument panel replaced the traditional instruments in measurement and control system,its main advantage relying on the powerful data-processing functions of the PC,and the function of machine changed when the virtual instrument panel changed.
引文
[1]许大中,贺益康.电机控制.杭州:浙江大学出版社,2002
    [2]周雅莉.基于专用控制芯片的步进电机控制器.伺服技术,2002.3:21-24
    [3]谭建成.新编电机控制专用集成电路与应用.北京:机械工业出版社,2005
    [4]王鸿钰.步进电机控制技术入门.上海:同济大学出版社,1990
    [5]刘振栋.步进电机的一种接口电路.自动化仪表,2002.12:44-45
    [6]李方圆.变频器行业应用实践.北京:中国电力出版社,2006
    [7]冯垛生.变频器实用指南.北京:人民邮电出版社,2006
    [8]关保国,钟伟弘.步进电机的驱动及微机控制.计算机应用,2002.8:55-58
    [9]姚锡禄.变频器控制技术与应用.福州:福建科学技术出版社,2005
    [10]朱清林,邹传云.基于USB2.0的高速数据采集系统的设计.工控技术,2005.7:120-122
    [11]王树.变频调速系统设计与应用.北京:机械工业出版社,2005
    [12]贺益康,潘再平.电力电子技术.北京:科学出版社,2004
    [13]钱峰.EZ-USB FX2单片机原理、编程及应用.北京:北京航空航天大学出版社,2006
    [14]廖济林.USB 2.0应用系统开发实例精讲.北京:电子工业出版社,2006
    [15]柯磊,高品贤.USB便携式通用数据采集卡研制.中国测试技术.2005.7:75-78
    [16]许永和.EZ-USB FX系列单片机USB外围设备设计与应用.北京:北京航空航天大学出版社,2002
    [17]艾珂尔逊,陈逸等译.USB大全.北京:中国电力出版社,2001
    [18]张延伟.Protel DXP电子电路设计技法范例.北京:清华大学出版社,2005
    [19]张阳天,韩异凡.Protel DXP电路设计.北京:清华大学出版社,2005
    [20]施阳.MATLAB语言精要及动态仿真工具SIMULINK.西安:西北工业大学出版社,1997
    [21]何超.交流变频调速技术.北京:北京航空航天大学出版社,2006
    [22]吴浩烈.电机及电力拖动基础.重庆:重庆大学,1997
    [23]李铁才,杜坤梅.电机控制技术.哈尔滨:哈尔滨工业大学出版社,2000
    [24]周去锋,孙书鹰,王宏.基于USB2.0的高速同步数据采集系统设计.计算机应用,2004.2:12-15
    [25]王宏,粟登馥,刘新国.基于cy7c68013的高速多路同步数据采集的实现.电子技术,2004.8:48-52
    [26]夏益民,王广君.基于USB总线的高速数据采集系统.国外电子元器件,2003.10:20-24
    [27]周志敏,周纪海,纪爱华.变频电源实用技术.北京:中国电力出版社,2005
    [28]徐崇德,朱荣新.基于USB2.0的虚拟仪器设计.空军工程大学学报,2006.6:73-77
    [29]胡晓军,张爱成.USB接口开发技术.西安:西安电子科技大学出版社,2005
    [30]张树明,方昌林.基于USB总线的数据采集系统.机床与液压.2005.11:132-135
    [31]Serges Lemo;Zhu June.USB data acquisition solution.Foreign Electronic Measurement Technology,2007.8:12-16
    [32]EZ-USB FX2 Technical Reference Manual v2.1.Cypress Semiconductor Corporation,2001
    [33]Date sheet of MAX118.Maxim Integrated Products Copyright,1996
    [34]Universal Serial Bus Specification[Z]Compaq,Intel,Microsoft,NEC,revision1.1,1998.9
    [35]P.Daponte,D.Grimaldi,L.Nigro,F.Pupo.Distributed measurement systems an object-oriented architecture and study.Computer standards and interfaces,1997:383-395
    [36]M.Abdelrahman,A.Rasheed,A methodology for development of configurable remote access measurement system.ISA Trans,2000:441-458
    [37]National Instruments Corp.The Measurement and Automation catalog.2003
    [38]L Congminl;GU Yidong3;LIN Baojun3 & GUO Jiong.Integrated precise orbit determination of Shenzhou Ⅳ unmanned spacecraft Science in China 2004.5
    [39]LIU Quanjun;ZHOU Qin.Detection and analysis system for hybridization images of lab-in-a-tube microarray.Chinese Science Bulletin,2005.24:12-15
    [40]DAI Xiao-jun.High-Speed Data Communication Interface Implementation Based on USB2.0.Chinese Journal of Electron Devices,2006.4:25-27
    [41]Meiss,Jim Partitioning.Hi-speed USB systems.Electronic Engineering Times 2006.3:12-14
    [42]Paulson,Linda Dailey.Concept car uses USB to program vehicle and replace key Computer.2005.11:23
    [43]Cardeira,Carlos;Da Costa,Jose Sa.A low cost mobile robot for engineering education.IECON Proceedings,2005:2162-2167
    [44]Kavian,Nasrollah;Natrajan,Balaji;Kilcoyne,William.Virtual capacity USB drive.2006.12:1629
    [45]Khalil,M.I.A USB-based data acquisition system for neutron TOF measurements.Measurement Science and Technology,2006.1:N1-N7