原创 quadrature signals and the application

2008-5-10 01:55 4757 10 11 分类: 测试测量

    Quadrature signals are two signals generated with a 90 degrees phase difference. They are used in mechanical systems to determine movement (or rotation) of an axis.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


    Here's one axis moving forward by a few steps.


点击开大图


If you count the pulses, you can say that the axis moved by 3 steps.
If you count the edges, you can say that the axis moved by 12 steps. That's what we do on this page.


Now the axis is moving backward by the same amount.


点击开大图


Where are they used?



  • In robotic axles, for feedback control.


  • With knobs, to determine user input.


  • In computer mice, to determine the direction of movement.


If you open a mechanical mouse, here's what you can see.


 


点击开大图


 


There are two optical quadrature encoders, each made from a slotted wheel, a light emitter and a pair of photodetectors.


The mouse includes an IC responsible for the quadrature decoding and the serial/PS2 interface. Since it is easier to create a quadrature decoder (in an FPGA) than a serial or PS2 interface, we modified the mouse and replaced the original IC with a quad-buffers Schmitt trigger inputs IC.


 


5897308a-8348-4b99-9f14-2b9060ae1472.jpg


 

 


We used a CD4093 with the inputs of the each NAND gate tied together to form inverters.
Now the mouse outputs a quadrature encoded signal!


Quadrature decoder


We want to implement a counter that increments or decrements according to the quadrature signals. We assume that we have available an "oversampling clock" (named "clk" in this page) that is faster than the quadrature signals.


The hardware circuit that controls the counter is surprisingly simple to do.


 


7202a5fc-2988-4fb8-a3a3-f88047a66396.gif

 

Here's a waveform where an axis moves in forward direction, so that the counter increments.


 


点击开大图


 


This circuit is sometimes called a "4x decoder" because it counts all the transitions of the quadrature inputs.


Real life circuit


The previous circuit assumed that the "quadX" inputs were synchronous to the "clk" clock. In most cases, the "quadX" signals are not synchronous to the clock. The classical solution is to use 2 extra D-flipflops per input to avoid introducing metastability into the counter.


 


点击开大图


 


 


                                             (mainly from fpga4fun.com)


 

 

 

文章评论1条评论)

登录后参与讨论

lg05128018_230568758 2008-5-10 15:43

我对你的无线识别很有兴趣,能不能发点资料我呢?谢谢,我邮箱lg05128018@163.com 呵呵给你留过言了. 谢谢
相关推荐阅读
daiqiumiao_806246054 2011-01-06 13:57
linux下yum代理设置
    我们在安装好linux后,经常会使用yum来更新系统,但是系统默认的代理是国外的,国内一般的网络不能访问,这里讲解具体做法,把代理换成国内的。attachment download      ...
daiqiumiao_806246054 2010-12-30 09:48
【转】ORACLE 10g下载地址
Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit...
daiqiumiao_806246054 2010-11-29 11:06
找工作的进来看
如下是我所有的开放性问题回答,希望对大家有帮助!1.      When choosing your first job/employer, what will you consider and wh...
daiqiumiao_806246054 2010-11-29 09:47
中长期规划---螺旋式上升方式修改完善职业之路
一、中长期职业发展的自我准备1、心态上随时做好准备 机会是给有准备的人的------“有准备”是你在做准备的过程中让“别人”认为你“有准备”!别人是包括你现在的老板和别的老板,以及你身边的人!他们对你...
daiqiumiao_806246054 2010-03-17 21:26
移动
分集方式传输损耗和距离关系光纤网络G网...
daiqiumiao_806246054 2010-03-17 09:40
GSM
特点  使用直观  GSM系统有几项重要特点:防盗拷能力佳、网络容量大、手机号码资源丰富、通话清晰、稳定性强不易受干扰、信息灵敏、通话死角少、手机耗电量低。  技术特点  1.频谱效率。由于采用了高效...
我要评论
1
10
关闭 站长推荐上一条 /2 下一条