You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All Arduino DUE pins can be used for interrupt and I think the controller clock speed is sufficient. Motor speed=60RPM, Encoder = cheap quadrature rotary knobs taped to the shaft. I am wondering if this code can possibilly work with multiple encoders sending pulses at the same time.
Thanks!
The text was updated successfully, but these errors were encountered:
Sure, but you will need to adapt the code that checks for the pin values (direction and encoder pins). Using a rotary knob is not something I would you. For around $10 you can get a higher resolution optical one that will give you better resolution, long lasting operation and noise-free signals. Make sure the one you but can work at 3V3 (most can do that).
Code can work with multiple motors, but you need to create a PID object for each one, and call its compute method within the main loop, plus each encoder will need to use a different interrupt code and location variable.
Bluepill can be a cheaper alternative to an Aduino DUE.
All Arduino DUE pins can be used for interrupt and I think the controller clock speed is sufficient. Motor speed=60RPM, Encoder = cheap quadrature rotary knobs taped to the shaft. I am wondering if this code can possibilly work with multiple encoders sending pulses at the same time.
Thanks!
The text was updated successfully, but these errors were encountered: