Author Options:

Rotary (pot) to mouse emulation Answered

I am trying to create an autocue controler. (I've built all the software in Javascript to run in browser windows)

When you press a button in Firefox / Explorer, a circle with 2 arrows appears allowing you to scroll up and down. If you move the mouse, the speed of the scroll changes. I want  - if not too complex - emulate this behaviour externally. My idea is to have a rotary control replace the mouse mvement such that you turn it one way the screen scrolls up, and ditto in reverse. And the further you turn the wheel one way or the other, the faster / slower the scroll goes.

I did think about using a PS2 mouse thinking it would be a simple case of replacing the sensor, and sending pulses to the chip to emulate the encoder output. But now I understand the LED in these sensors is pulsed, and that the encoder also generates a quadrature signal to the IC chip. Apart from which, those mouse / IC chips are now obsolete!!

Anyone any ideas?

** In the days of serial on the old PC's like ZX80, you simply sent a pulse to emulate a mouse click: rapid fire was simply a matter of increasing mark/space timings


The forums are retiring in 2021 and are now closed for new topics and comments.