Hello,
I am looking for help or someone to write code for me to take 2 rotary optical encoders and 2 buttons to create a mouse type interface. I have a Leonardo which should be easier to connect to a PC as a mouse but using the rotary encoders is a bit tricky for me. I would like the values it sends to be absolute if possible. Let me know if anyone can help me achieve this.
Do you have absolute encoders?
By “mouse type interface” do you mean a mouse such as this:
That uses a ball in contact with two optical encoders to read its position?
If so, you may find it difficult to source any optical encoders small and accurate enough to fit inside a mouse.
Optical encoders work in steps per full rotation e.g a optical encoder with a “ppm” of 10 would have 10 pulses or “steps” in a full rotation. If you want your mouse to be accurate, you will need a optical encoder with a relatively high ppm, over 50 would be a good start.
It can be quite difficult (and expensive) to find compact, accurate, unlimited turn potentiometers/rotary encoders/ optical encoders
Especially ones compatible with arduino.
Is there a specific reason you need to use encoders to read the position of your mouse? You would be much better of using an accelerometer.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
