摘要
采用编码器进行单片机速度测量时,数据运算时间较长,测量范围受到限制。通过对常用的速度测量方法和计算公式进行分析,结合低分辨力编码器的特点,提出了一种简化算法。对不同系数的编码器,采用测量时间可变的测量方法,将复杂的乘除运算变换为简单的乘法运算,减少计算工作量,彻底消除计算误差。测试数据表明:采用低分辨力编码器时,简化算法可测量的最大速度达13008m/h,速度分辨力可达到3m/h。
The computation of speed measurement takes more time of microcontroller using encoder,and the measuring scale of speed is limited.The current computational method of speed measurement with microcontroller and its computation formula are analyzed,and then a simplified computational method is presented based on low resolution edcoder’s characteristics.A technique using a changeable measuring time is introduced for encoders with different coefficients,so as to transform complicated multiplication and arithmetic division into contracted multiplication,decrease the calculation workload,eliminate the calculation error.The test data indicate that the maximum measuring speed using low resolution encoder with simplified computational method is up to 13008m/h,the resolution of speed is 3m/h.
出处
《传感器技术》
CSCD
北大核心
2005年第3期65-67,共3页
Journal of Transducer Technology
关键词
编码器
速度测量
测量时间
计算方法
encoder
speed measurement
measuring time
computational method