luni
Well-known member
Recently a lot of new encoder libraries and other encoder related information and questions were posted in the forum.
To name a few:
Encoders (once more)
Encoder Library not as efficient as XOR method
Rotary Encoder Debugging on SAMD11
Hardware Quadrature Code for Teensy 3.x
Encoder
How to use encoders as pot
... and a lot more
Due to the obviously growing interest in using encoders and writing encoder libraries I thought that publishing a small encoder simulator tool might be useful for systematic testing of the libraries. Here the link to the GitHub repo: https://github.com/luni64/EncSim. It can generate quadrature signals at count rates from 1Hz up to 1.4MHz. The phase of the generated signals can be adjusted from 90° (standard) down to 10°. Optionally a random bouncing signal with adjustable parameters can be added. The simulator can be controlled from any serial terminal (TyCommander, PuTTy, arduino serial monitor...).
In case somebody wants to try it without installing the library first, I attached the Hex files for T3.6 and T3.2 in the Repo and to this post. Just upload the FW, connect to a serial terminal and type help. Output signals are generated on pin 0 and pin 1.
and here an example of a generated signal with added simulated contact bouncing:
Detailed documentation can be found in the GitHub readme.
To name a few:
Encoders (once more)
Encoder Library not as efficient as XOR method
Rotary Encoder Debugging on SAMD11
Hardware Quadrature Code for Teensy 3.x
Encoder
How to use encoders as pot
... and a lot more
Due to the obviously growing interest in using encoders and writing encoder libraries I thought that publishing a small encoder simulator tool might be useful for systematic testing of the libraries. Here the link to the GitHub repo: https://github.com/luni64/EncSim. It can generate quadrature signals at count rates from 1Hz up to 1.4MHz. The phase of the generated signals can be adjusted from 90° (standard) down to 10°. Optionally a random bouncing signal with adjustable parameters can be added. The simulator can be controlled from any serial terminal (TyCommander, PuTTy, arduino serial monitor...).
In case somebody wants to try it without installing the library first, I attached the Hex files for T3.6 and T3.2 in the Repo and to this post. Just upload the FW, connect to a serial terminal and type help. Output signals are generated on pin 0 and pin 1.
and here an example of a generated signal with added simulated contact bouncing:
Detailed documentation can be found in the GitHub readme.
Attachments
Last edited: