Karl queried:
I'm working on a project where I need to control a motor, based on the feedback from an quadrature encoder.I'm trying to do on the fly speed calculations of the encoder but can't get my head around how to do speed calculations as I need to know the time constant between pulse readings.
Any suggestions ?
A quadrature encoder is intended to determining distance and direction rather than speed. For speed use a regular counting input (OBCA or OBCB depending on frequency) and read the number of pulses on A or B over 100mS or 1S.
Corollary: For speed (only) you only need a simple single channel incremental encoder (or tacho encoder), though I think that these days most incremental encoders do have quadrature outputs.
