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

Thread Starter


Joined 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?


Joined 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.