brentfinley
New member
I am looking at combining the PID library:
https://github.com/imax9000/Arduino-PID-Library
and a quadrature encoder
To make a motor controller for a motion picture camera. It needs to ramp up in 0.5 seconds and then lock into a set speed. I anticipate a startup PID, then "at Speed" PID adjustment.
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
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