摘要: |
摘 要: DS - 25旋转电子编码器能够很好地与机械电子应用相匹配,实现对绝对角度位置的检测。但
其复杂的查表过程降低了软件灵活性,并增加表格存储空间进而增加硬件成本;通过对DS - 25的两种工作
模式分析提出算法改进方案,方案利用粗略模式下得到的角度值推算精确模式下的信号周期序号,并结合
精确模式下测量到的角度值计算编码器对应的绝对角度位置,能节约近2 KB的存储空间;另外,DS - 25输
出的2路模拟信号在前级放大处理时,因器件的离散性,必然造成2路信号之间存在偏差,通过软件调整2
路信号之间的比例系数来补平信号差异,提升程序的适应能力;实验证明:算法的改进能节约电子表格的存
储空间,角度位置误差控制在3‰以内。 |
关键词: 关键词:旋转电子编码器 粗略模式 精细模式 信号周期 角度 |
DOI: |
分类号: |
基金项目: |
|
Design and implementation of calculating absoluterotation angle through rotary electronic encoder |
HE L ing2ling
|
Abstract: |
Abstract: DS225 rotary, absolute, electric encoder is ideally suited to mechatronics app lications. It is used to
achieve the perspective of absolute position detection. But the comp lex p rocess of looking2up table resulted in re2
ducing the software flexibility to increase storage space and thus increase the cost of hardware. Through analysis of
the two workingmodel ofDS225 p roposed algorithm to imp rove the p rogram, the p rogram uses coarse model angle to
calculate p redicted signal cycle serial number of fine model, combining with fine model angle to calculate absolute
angle. In addition, DS225 output 22channel analog signal amp lification level in the former treatment due to the dis2
creteness of the device will certainly create deviations between 22channel. The software adjust the ratio between the
signal factors to eliminate the differences between signals. This app roach reduces costs to enhance the adap tability
of the p rocedures and imp lementation efficiency. Experiment results show that the method can save storage space of
E2Forms and willmake an error control in less than 3 ‰. |
Key words: Key words: rotary electric encoder coarse model fine model signal cycle angle |