How to calculate PWM output signal from shaft encoder using simulink?

Discussion in 'The Projects Forum' started by dolpre, Feb 1, 2008.

  1. dolpre

    Thread Starter New Member

    Feb 1, 2008
    In my project, i have a shaft encoder sensor from US digital with 12-bit PWM output. How can i measure the speed from this PWM signal if i need to measure forward and backward speed of my dc motor?
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    Reading and understanding the data sheet is a very useful way to attain understanding. This type of encoder is much more suited to measuring shaft angle than rotational speed.

    However, at some point the output will fall to zero. That will always occur at the same rotational angle. The time between the transitions from high to low will give you shaft speed.