VHDL 语言 PWM 风扇等精度测速装置的实现 李贵子 1 袁2 袁 王 季 1 袁2 ( 1. 甘肃省机械产品检测与技术评价重点实验室,甘肃兰州 730030; 2. 甘肃省机械科学研究院,甘肃兰州 730030 ) 摘 要院针对 PWM 风扇性能评价中对高精度、智能化的要求,利用 VHDL 语言的复杂系统可编程逻辑器件 CPLD,开 发一种等精度自适应小型风扇转速测量系统。该系统采用 VHDL 语言编写程序,选用 Quartus II 作为开发平台,并给 出系统的软硬件方案。通过仿真试验表明:系统测量工作可靠,有良好的测量精度、灵敏度、分辨率,便于现场测试。 关键词院VHDL 语言; PWM 风扇;等精度测速 中图分类号院TM925.11曰TM930.114曰TP274 + .2曰TP302.7 文献标志码院A 文章编号院1674-5124渊2013冤04-0109-04 PWM fan equal-precision speed measurement device based on VHDL language LI Gui-zi 1, 2 ,WANG Ji 1 , 2 ( 1. Key Laboratory of Mechanical Product Testing and Technical Evaluation, Gansu Province, Lanzhou 730030, China; 2. Gansu Academy of Mechanical Sciences, Lanzhou 730030, China ) Abstract: According to the requirements of high precision and intelligentialize in the process of PWM fan performance evaluation, complex programmable logic device CPLD of VHDL language was used to develop an equal -precision and self adaptive measurement system to measure the speed of small fan. The system use VHDL language to program, select Quartus II as the development platform with solution for hardware and software of the system. The simulation and experiment show the measurement of system is reliable and the measurement precision,sensitivity and resolution ratio are excellent. Therefore the system is convenient for field test. Key words: VHDL;PWM fan;precision measurement 收稿日期院2012-10-18曰收到修改稿日期院2012-12-24 作者简介:李贵子( 1979-),男,甘肃秦安县人,工程师,硕 士,主要从事智能检测与故障诊断工作。 0 引 言 随着电子、机械装置可靠性水平的提升, PWM 控制小型直流散热风扇(以下简称风扇)在加速发 展。风扇性能测试主要对风扇微型直流电机的电流 和转速进行测试。主要通过给风扇提供多种占空比 的 PWM 控制信号,在不同的占空比下分别测试风扇 的电流和转速。在测量转速方面,闪频测试仪是目前 风扇高精度转速测量普遍采用的仪器,更为传统的 测试方法需采用多台通用仪器,即用信号发生器提 供风扇所需的 PWM 信号,通过电阻采样风扇的电 流,使用光电感应的方法测转速,通过示波器观察波 形。对自动化流水线来说,采用以上两种方法,每个 测试工位都要配置测试员和整套测试仪器,使得成 本升高、测试效率降低 [1] 。针对这种状况,研制了基于 VHDL 语言的高精度新型直流风扇自动测试系统。 该系统给风扇提供各种占空比的 PWM 控制信号,通 过 FPGA 技术和等精度测量原理提高测量的精度, 借助 FPGA 器件内部逻辑单元的逻辑功能以及各模 块之间或模块与 I/O 间的联接方式,计算出风扇的转 速及其他参数,通过 CAN 总线送到上位机保存和分 析。此系统的测试理论准确度可达依1 r/s,可同时测 试多个风扇,实现直流风扇的在线测量 [2] ,提高测量 精度和测试效率。本文在整体测试系统的基础上,重 点介绍基于 VHDL 语言的 PWM 风扇等精度测速原 理及实现。 中国测试 CHINA MEASUREMENT & TEST Vol.39 No.4 July, 2013 第 39 卷第 4 期 2013 年 7 月
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
PWM fan equal-precision speed measurement device based on VHDL language
LI Gui-zi1,2,WANG Ji1,2(1. Key Laboratory of Mechanical Product Testing and Technical Evaluation,Gansu Province,
Lanzhou 730030,China;2. Gansu Academy of Mechanical Sciences,Lanzhou 730030,China)
Abstract: According to the requirements of high precision and intelligentialize in the process ofPWM fan performance evaluation,complex programmable logic device CPLD of VHDL languagewas used to develop an equal -precision and self adaptive measurement system to measure thespeed of small fan. The system use VHDL language to program, select Quartus II as thedevelopment platform with solution for hardware and software of the system. The simulation andexperiment show the measurement of system is reliable and the measurement precision,sensitivityand resolution ratio are excellent. Therefore the system is convenient for field test.Key words: VHDL;PWM fan;precision measurement