simulating mouse


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2005
    Posts
    14

    Default simulating mouse

    has anybody have a example how to simulate a ps-2 mouse (serial) with inputs from a pic with buttons or from adc inputs.
    I've looked on the web but only found a source-code but i need it in picbasic

    who can help me on the right track..


    thx Maus

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    Have you looked in the USB Directory of your PBP Compiler installation recently?

  3. #3
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237

    Default

    Do a search on the net for PS/2, mouse, keyboard and BS2. You should find lots of useful info. Keyboards and mice are very similar, only the protocol are different. Hardware and communication are the same. You should easily be able to convert any Stampcode you find into PBP.

  4. #4
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Using a Mouse for input

    Hi all,
    I seem to find a number of posts that address simulating a PS/2 keyboard or mouse to simulate input to a computer. I have actually went into a wheel mouse and got the signals from the encoders for quadrature input but that wastes the inherent intellegence already in the mouse. At some point, it seems smarter to use the natural data stream from one instead of hacking it for 3 axises and the switch status. If I can handle the data, I can use it to manually take control of a CNC gantry. The X and Y positioning is logical, and the wheel will be used to manually adjust the Z.
    The starting point that I have so far is http://www.computer-engineering.org/ps2protocol/. If anyone has any better starting point, I'd love to hear it.

    Thanks
    Bo

  5. #5
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default

    Hi all,

    My ongoing efforts to use a PS/2 mouse as an input device have gotten me here. It is based on MyTec Control's PS/2 keyboard program.
    I'm just trying to get the initialization sequence for a start. I'm using a Saleae Logic pod to watch the exchange and so far, All I can see are the initial $AA $00 from the mouse on power up. Any ideas?

    This seems like it would be handy.
    Thanks
    Bo
    Attached Files Attached Files

Similar Threads

  1. USB Optical mouse as motor encoder
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th August 2008, 15:09
  2. need help simulating PS/2 mouse
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th December 2007, 21:49
  3. Using the optical sensor from a ball mouse
    By lsteele in forum General
    Replies: 5
    Last Post: - 5th September 2007, 16:45
  4. ps/2 mouse
    By hamid in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 22nd June 2007, 09:04
  5. My wish: AT Keyboard and Mouse commands
    By sayzer in forum PBP Wish List
    Replies: 0
    Last Post: - 4th February 2006, 08:23

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts