#### brentfinley

##### New member

https://github.com/imax9000/Arduino-PID-Library

and a quadrature encoder

### GitHub - mjs513/Teensy-4.x-Quad-Encoder-Library: Hardware Quadrature Library for the Teensy 4.x

Hardware Quadrature Library for the Teensy 4.x. Contribute to mjs513/Teensy-4.x-Quad-Encoder-Library development by creating an account on GitHub.

github.com

The PID library examples use an Analog pin for the "set point" target.

Does anyone have an example of reading a quadrature encoder at a set interval and calculating speed from that as a reference for the input to the PID algorithm?

Thanks in advance