Quadrature multichannel decoder for PicoMite using PIO
Author
Message
PhenixRising
Guru
Joined: 07/11/2023
Location: United KingdomPosts: 1996
Posted: 08:33am 22 May 2025
Volhout said
@phill,
The Quadrature decoder code you posted only decodes a single encoder, and is suitable for up to 1000 counts per second on a pico. These code snippets are very nice for a rotary encoder knob on a apparatus. Simple, and MMBasic.
For decoding multiple encoders, like in a CNC machine (where counting could be faster), the PIO version is preferable, since it works independent of the ARM (and is 1000x faster).
Volhout
Hi Harm,
Would be be able to read 12 encoders on the RP2350?