This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

QDEC: Quadrature Decoder


A simple quadrature decoder example

Building and Running

This project writes the quadrature decoder position to the console once every 2 seconds.

Building on SAM E70 Xplained board

west build -b sam_e70_xplained samples/sensor/qdec

Sample Output

Quadrature Decoder sample application

Position is 6
Position is 12
Position is -45

<repeats endlessly every 2 seconds>