Connect with us

Keyboard / Mouse Input Device Design??

Discussion in 'Electronic Design' started by Peter Olcott, Oct 31, 2006.

Scroll to continue with content
  1. Peter Olcott

    Peter Olcott Guest

    I need to know how difficult it would be to design and build a device that is
    able to force hardware keystrokes and mouse operations into an Intel based
    motherboard. I was thinking that it could have one end plugged in to a serial
    port or USB, and the other end would be a Y connection to the keyboard and mouse
    ports. How difficult and costly would building such a device be?
  2. Dave Kearton

    Dave Kearton Guest

    A keyboard wedge ? Similar to the smaller and cheaper barcode readers
  3. krw

    krw Guest

    It's a trivial exercise at the PS/2 port level. PS/2 keyboards are
    really dumb. USB is a lot more of a challenge.
  4. Peter Olcott

    Peter Olcott Guest

    So the Mouse PS/2 port would be easy, too? The device could use a regular serial
    port instead of a USB, would this make it easier?
  5. Build it?
  6. Peter Olcott

    Peter Olcott Guest

    It must be able to create keystrokes AND every mouse action.
  7. Donald

    Donald Guest

    This must have been a personal project.

    Was there a special reason to do it this way ??

    As a learning project sure, but WHY ??
  8. A friend of mine threw together a custom "keyboard" with rotary
    encoders and a bunch of keys (a custom control console for the
    entertainment business) and got it to talk to a PC fairly readily. He
    used a PIC 18F USB microcontroller and some demo code Microchip has
    available. It took him longer than a more sane person because he
    insisted on translating their C to assembler.

    Best regards,
    Spehro Pefhany
  9. See for yourself:

    What are you intending to accomplish?

    -Le Chaud Lapin-
  10. Guest

    I don't know about the mouse but I feed keystrokes into a PC with an
    old keyboard card and reed relays across the matrix inputs.
  11. Conceptually, how?
  12. Guest

    I suppose if you started with a ball mouse card and tricked up the
    pulses that normally come from the wheel photo cells you could make
    the cursor move around but I doubt you could actually hit the right
    spot in any repeatable manner. The buttons are just switches so they
    are easy. I found it was a lot easier to just use an application that
    could be operated by keystrokes.
  13. A mouse is a serial thing. Guess the old COM-port mice still work under
    WINXP. If I remember well, the Microsoft mouse requires three bytes
    9600,n,7,1. The keyboard generates scan codes in a serial way. FAIK also 7
    bits but a with dedicated protocol which has its own, separate clock. Maybe
    you can simulate it by fiddling with some parallel printer port pins but I
    never tried this out.

    To build such a module, I'd use a micro with two UARTS. One to receive the
    data from the controlling computer and one to send data to the mouse
    interface. Three I/O pins of the micro can handle the keyboard interface. As
    the micro has to distinguish between data for the mouse- and data for the
    keyboard input you can set bit 7 for one of them.

    As I see it, it's quite some work but not difficult. The program for the
    micro will be small. Hardly any calculation required. If you have more time
    then money, you can take a smaller, cheaper micro with only one UART and do
    the other in software.

    petrus bitbyter

  14. Hi, I forgot to tell you in comp.os.linux.development.apps that the part
    where you read the screen is also problematic, as X has its own graphics
    drivers, etc.
    So you may as well add a web cam looking at the screen and associated analysing
    hardware too,.
    I think the Japanese are way ahead with robots :)

    Sorry s.e.d guys little inside joke, we met in c.o.l.d.a before...
  15. Peter Olcott

    Peter Olcott Guest

    I need to do the MOUSE and the KEYBOARD. I have patented technology that can
    intelligently recognize anything on any GUI screen. There are some applications
    that get their keyboard input directly from the hardware. There might be some
    applications that do the same thing for the mouse. I want a single solution that
    always works on the Intel platform that can be used for automated testing on any
  16. Peter Olcott

    Peter Olcott Guest

    I need a way to feed keystrokes to applications that get their keystrokes
    directly form the hardware. I want the same sort of solution for the mouse.
  17. Peter Olcott

    Peter Olcott Guest

    I am building a universal GUI testing system based on
    technology that can always intelligently "see" anything on the screen by
    recognizing graphical objects from their pixels.
  18. Peter Olcott

    Peter Olcott Guest

    These would be mass produced. It looks like you have the right basic concept.
    How many hours would it take to build a prototype?
  19. Peter Olcott

    Peter Olcott Guest

    Are you saying that doing a screen capture is hard, or recognizing the graphical
    objects from the screen capture? (I got the last part solved).
  20. Eeyore

    Eeyore Guest

    What do you mean by *force* ?

    You can get USB keyboards and mice anyway !

    A USB mouse saved the day a while back on a system I was working on when for some
    unknown reason the standard mouse 'froze'. We just substituted a USB mouse and it
    was fine again.

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day