TTL Relay to "Click" a Mouse Button

Discussion in 'General Electronics Chat' started by mgklein, Jul 6, 2018.

  1. mgklein

    Thread Starter New Member

    Mar 17, 2011
    1
    0
    Hi All,

    I have a CCD camera with no external trigger capability which I need to sync to another acquisition device. As it works now, to activate a scan you mouse-click on the "Scan" button within the software imaging application. However, I can't reliably synchronize the button press within the acquisition sequence, which lasts about 2 seconds, and is repeated maybe 500 times.

    My idea is to replace (jumper) the mouse button switch with a TTL activated relay. I've located an item which I think will do the job:
    http://www.winford.com/products/rly102.php

    I would then move the mouse cursor over the button in the application, and leave it there. I could then supply a TTL pulse which will effect the button press. I would guess this would be accurate to maybe 100 ms, perhaps with some variability depending on the computer OS.

    Is this relay the right part for the job? Is there something about mouse electronics I am missing?

    Thanks very much,

    Mike
     
  2. Sonoran Desert Tortoise

    Member

    Oct 30, 2014
    76
    62

    I would use a software option. Windows tool you can download is something like AutoIt.exe and for Linux, you can follow instructions here.
    https://askubuntu.com/questions/371240/is-there-a-terminal-command-that-will-click-the-mouse

    It is just kind of a weird idea to me to build hardware modifications to automate a computer function.
     
Loading...