内螺纹检测系统及其USB接口电路研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
螺纹零件作为机械领域的常用件,其参数测量是机械制造工业中一项基础性测量技术,而其非接触测量是将机电技术、光测技术与计算机图像处理技术相结合的综合测量技术。本论文研究了应用于内螺纹测量的检测系统和USB接口电路,建立了内螺纹检测系统模型框架和数据采集软硬件系统。
     论文简要介绍了内螺纹检测系统的原理和结构,给出了整个系统的结构框图,建立了基于激光三角测量原理的光学分系统、用于轴向进给的精密机械位移平台分系统和数据采集传输分系统。
     根据非接触式内螺纹检测系统的高速化和微型化特性,设计了一套高速数据采集、存储、传输系统。采用CPLD产生的时序电路驱动光电传感器CCD输出信号,同时控制A/D采样和进行模数转换;随后,数字信号存入FIFO并与采用GPIF接口模式的USB相连,等待FIFO触发GPIF波形时将数据高速读入USB端点暂存,等候主机读取到内存缓存区进行进一步的存储显示。
     在硬件设计方面,论文提出了数据采集系统总体方案,给出了数据采集系统的工作原理。介绍了数据采集系统中用到的主要芯片CCD和USB,并对系统硬件电路中的主要模块、CPLD内部逻辑等内容进行了设计。
     在软件设计方面,论文分析了USB总线体系、通信协议和WDM驱动程序模型,建立了数据传输系统中USB固件程序框架,设计了系统固件程序、USB设备驱动程序和主机应用程序。完成了整个USB通信功能和界面显示等功能设计。
The parameter measurement of threaded parts is a basic measurement technique in the machinery industry, and the non-contact measurement technology is a new measurement technology which combined with electromechanical, optical measurement and computer image processing technology. In this paper, the detection system of internal thread measurement and the USB interface circuit are researched, and then the detection system model framework and data acquisition hardware and software systems are established.
     The principle and structure of internal thread detection system are introduced, and the whole system diagram is given. The optical subsystem based on the principle of laser triangulation, precision machinery platform subsystem used in axial feed displacement and data acquisition and transmission subsystem are established.
     A system with high-speed data acquisition, storage and transmission is designed, according to the non-contact thread detection system features of high-speed and miniaturization. Sequential circuits generated by CPLD driver CCD output signal, while controlling the AD sampling and conversion, subsequently, the digital signal is got into the FIFO,which is connected with USB through GPIF moden when the GPIF waveform is triggered, the data is got into the high-speed USB endpoint buffer and waits for the host to read into memory buffer for further storage display;
     In hardware design, a general scheme of the data acquisition system is proposed and its work principle is given. The main chip CCD and USB using in the acquisition system are introduced, furthermore, the main modules of hardware circuit and the CPLD logic are designed.
     In software design, USB firmware framework is established with the analysis of the USB bus system, communication protocols and WDM driver model. The system of firmware, USB device drivers and host applications are designed. The entire USB communication design and interface display functions are completed.
引文
[]]佟岩,李琳,唐江涛等,螺纹多参数检测的发展方向[J].红外与激光工程,2008,37:227-229.
    [2]徐孝恩.螺纹测量[M].北京:机械工业出版社,1986.
    [3]高延新,潘润岭,王文义.浅议螺纹标准及其检测技术[J].航天标准化,1996,(4):21-23.
    [4]张红岩,张国雄.大螺纹在线测试系统[J].机械工程学报,2008,44(12):199~200.
    [5]吕东方,丁振良,袁峰.光针轮廓扫描技术测量内螺纹曲面[J].光学精密工程,2007,15(2):187~191.
    [6]李俊. 几种螺纹测量方法的比较[J].电子工程,2005(2):42-45.
    [7]刘丽娟,肖小平,鲍唯.工具显微镜内螺纹测量装置[J].上海计量测试,2002,29(6):23~26.
    [8]吕东方. 螺纹参数激光检测技术研究[D]. 哈尔滨工业大学博士学位论文.2007.
    [9]李恒,安莹,董威. 非接触式光纤内螺纹测试装置[J].中国测试技术,2008,34(3):24-26.
    [10]Randal J. Hunsicker, John Patten, Alton Ledford, Cathie Ferman, Michael Allen. Automatic Vision Inspection and Measurement System for External Screw Threads. Journal of Manufacturing Systems.1994,13(5):370-383.
    [11]朱光,朱学芳.基于图像识别的螺纹参数检测系统[J].计算机与数字工程,2010,38(11):156~159.
    [12]徐晓翟,敬梅.基于机器视觉的形状尺寸检测方法研究[J].微计算机信息,2009,25(6-1):222~223.
    [13]田原嫄,黄合成,谭庆昌等.基于机器视觉的零件尺寸测量[J].激光与光电子学进展,2010,47:1-6.
    [14]E S Gadelmawla. A novel system for automatic measurement and inspection of parallel screw threads. Proceedings of the Institution of Mechanical Engineers, Part B:Journal of Engineering Manufacture.2004,218:545~556.
    [15]刘清云,佟首峰,刘鹏等.螺纹综合尺寸非接触光电测量系统[J].化工及自动化仪表,2005,32(2):61~63.
    [16]徐爱群,项古琴,陈子辰.非接触式自动螺纹检测仪的研制[J].浙江大学学报(工学版),2005,39(8):1179~1193.
    [17]宋甲午,张国玉,安志勇等.圆度误差的激光扫描非接触测量方法[J].兵工学报,2000,21(1):61~63.
    [18]Yong Zhao, Pengsheng Li, Zhaobang Pu. Shape measurement based on fiber-optic technique for complex internal surface. Measurement,2001,30(4):289-295.
    [19]Yong Zhao, Yanbiao Liao. Single-mode fiber-based reflex sensor for internal surface in-line measurement of small products. Sensors and Actuacors,2007,101(1-2):30~36.
    [20]K.Vacharanukul, S.Mekid. In-process dimensional inspection sensors. Measurement, 2005,38(3):204~218.
    [21]王世峰,赵馨,佟首峰等.基于激光位移检测技术的螺纹检测仪研制[J].仪器仪表学报,2007,28(4):755~758.
    [22]Hsueh-Liang Huang, Wen-Yuh Jywe, Chien-Hung Liu, Lili Duan, Ming-Shi Wang. Development of a novel laser-based measuring system for the thread profile of ballscrew. Optics and lasers in Engineering,2010,48(10):1012~1018.
    [23]卢晋人,黄元庆.激光三角法测量表面形貌[J].厦门大学学报(自然科学版),2004,43(1):50~53.
    [24]戴立铭,江憧君.激光三角测量传感器的精密位移测量[J].仪器仪表学报,1994,15(4):400-402.
    [25]李相银.激光原理技术及应用[M].哈尔滨:哈尔滨工业大学出版社,2004.
    [26]王庆友.光电传感器应用技术[M].北京:机械工业出版社2007.
    [27]刘恩科,朱秉生,罗晋生.半导体物理[M].北京:电子工业出版社,2008.
    [28]王庆有.CCD应用技术[M].天津:天津大学出版社,2000.
    [29]林东颖.使用数位讯号处理器与光感测器进行三维位置测量[D].国立成功大学硕士学位论文.2004.
    [30]ILX526A Image Sensor datasheet. SONY.1994.
    [31]赵震方,刘治华,李建鹏.一种新型CCD的驱动时序产生方法[J].机床与液压,2010,38(22):92~94.
    [32]王盛艳,李刚.CCD时序驱动电路设计[J].电子测量技术,2006,29(1):56~57.
    [33]张智辉,田地,杨义先.线阵CCD驱动电路设计的几种方法[J].仪表技术与传感子器,2004(6):32~33.
    [34]黄正瑾,徐坚CPLD系统设计技术入门与应用[M].北京:电子工业出版社,2004.
    [35]高志国,曹益平VHDL在CCD驱动电路中的应用[J].光学仪器,2006,28(3):21-25.
    [36]王辉,殷颖,陈婷等MAX+plusII和QuartusII应用与开发技巧[M].北京:机械工业出版社.2007.
    [37]郭艳平,丁万山.基于VHDL的彩色线阵CCD驱动时序设计[J].微处理机,2008(5):141-143.
    [38]MAX7000 Programmable Logic Device Family Datasheet. Altera.2002.
    [39]MAX 152CPP Device Operation Datasheet. MAXIM.1993.
    [40]李英伟,王成儒等.USB2.0原理与工程开发[M].北京:国防工业出版社,2007.
    [41]姜京润.USB2.0总线接口与研究应用[D].中国科学院长春光学精密机械与物理研究所硕士学位论文.2003.
    [42]Jan Axelson著,陈逸等泽.USB大全[M].北京:中国电力出版社.2001.
    [43]EZ-USB FX2 Technical Reference Manual. Cypress Semiconductor Corporation.2002.
    [44]Universal Serial Bus Specification Revision2.0, http://www.usb.org.
    [45]EZ-USB(?) FX2TM GPIF Primer, Cypress Semiconductor Corporation,2003
    [46]周云锋,单甘霖,王鑫. FX2的波形描述符设计及应用[J].微计算机信息,2005,21(2):158~159.
    [47]李亭,李华GPIF与FIFO接口设计[J].电测与仪表,2006,43(486):56-58.
    [48]EZ Loader Custom USB Firmware Loader Driver. Cypress Semiconductor Corporation. 1999.
    [49]Chris Cant著,孙义,马莉波,国雪飞等译.设备驱动程序开发指南[M].北京:机械工业出版社.2000.
    [50]薛园园.USB应用开发技术大全[M].北京:人民邮电出版社.2008.
    [51]陈升来,郭立红,谭振江,袁继侠Windows 2000下USB数据采集系统驱动程序开发[J].吉林大学学报,2003,21(2):183~185.
    [52]武安河Windows 2000/XP WDM设备驱动程序开[M].北京:电子工业出版社.2005.
    [53]The Microsoft Windows Server 2003 SP1 DDK. Microsoft Corporation,2003.
    [54]刘瑞新visual C++面向对象程序设计教程[M].北京:机械工业出版社.2004.
    [55]Microsoft MSDN for Visual C++. Microsoft Software. Inc.2003.
    [56]左飞,万晋森,刘航Visual C++数字图像处理开发入门与编程实践[M].北京:电子工业出版社,2008.