Quadrature multichannel decoder for PicoMite using PIO


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5994
Posted: 08:27am 22 May 2025      

@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
Edited 2025-05-22 18:29 by Volhout