← index #5214PR #12347
Related · high · value 7.695
QUERY · ISSUE

pulse counter quadrature encoder

openby ZeshuiLiopened 2019-10-15updated 2025-10-03
enhancement

How can I use this firmware to get the output of the quadrature encoder

CANDIDATE · PULL REQUEST

mimxrt: Add Quadrature Encoder and Pulse Counter classes.

mergedby robert-hhopened 2023-08-31updated 2026-03-09
port-mimxrt

This PR adds Quadrature Encoder and Pulse Counter classes based on the Encoder hardware of the mimxrt MCUs. The base methods are as simple as possible, with options to make use of the hardware features supporting fast encoder sensors, like index pulses.

Tested with a slow manual encoder and a simulation of fast encoder/counter signals up to a input frequency of 25 MHz.

The PR is a re-submit of PR #7911, which could not be reopened. The conversation at that PR applies here as well (except for the UART part).

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied