Mouse Emulator using Arduino
Posted: Sat Oct 24, 2020 4:22 pm
Instead of modifying an existing USB mouse for tuning the Langstone it is also possible to program an Arduino Pro Micro board to emulate a mouse.
One of the advantages of doing this is that it enables a higher quality rotary optical encoder to be used. These usually have a much higher number of pulses per revolution than the lower cost mechanical encoders. They also do not have the click detents and so can enable smoother tuning and a real tuning knob feel.
The higher number of pulses per revolution can be a problem when trying to use existing mouse boards. Either the tuning rate is too high or the mouse board limits the maximum rate. Both are not ideal.
I have just published a working design for an Arduino pro micro on github at https://github.com/g4eml/Langstone-Mouse
This design has been optimised for the Langstone and can be configured to use high resolution encoders. The USB output is scaled to a suitable value for the Langstone code to handle. The Arduino .ino file is very simple and makes use of the standard arduino mouse and encoder libraries.
Hardware required is an Arduino Pro Micro board, a suitable encoder, and two push switches.
The Arduino Pro Micro board is available from Ebay at around £6 (must have the ATmega32U4 processor 5V 16MHz version)
Optical rotary encoders are available from around £10. The one I used is 400 pulses per revolution but this high is not really required.
Colin G4EML
One of the advantages of doing this is that it enables a higher quality rotary optical encoder to be used. These usually have a much higher number of pulses per revolution than the lower cost mechanical encoders. They also do not have the click detents and so can enable smoother tuning and a real tuning knob feel.
The higher number of pulses per revolution can be a problem when trying to use existing mouse boards. Either the tuning rate is too high or the mouse board limits the maximum rate. Both are not ideal.
I have just published a working design for an Arduino pro micro on github at https://github.com/g4eml/Langstone-Mouse
This design has been optimised for the Langstone and can be configured to use high resolution encoders. The USB output is scaled to a suitable value for the Langstone code to handle. The Arduino .ino file is very simple and makes use of the standard arduino mouse and encoder libraries.
Hardware required is an Arduino Pro Micro board, a suitable encoder, and two push switches.
The Arduino Pro Micro board is available from Ebay at around £6 (must have the ATmega32U4 processor 5V 16MHz version)
Optical rotary encoders are available from around £10. The one I used is 400 pulses per revolution but this high is not really required.
Colin G4EML