Results 1 to 7 of 7

Thread: Custom mouse

  1. #1
    Low Bitrate
    Join Date
    Apr 2005
    Location
    Minnesota
    Posts
    73

    Custom mouse

    Ok, I want to build my own custom mouse out of an old ball-type mouse, and an analogue stick from a dual-shock ps2 controller. The problem is...how would this hook up? I have no experience with infrared emitters/recievers like those in a mouse, so I have no idea as to what kind of signal is being sent at that level. If any information on infrared emitters/recievers would be well appreciated.

    Yes, I know there are some "presenting" mice out there that are similar.
    Da_Kooz

  2. #2
    Low Bitrate Pepe's Avatar
    Join Date
    Jul 2003
    Location
    Kingston, Ontario, Canada
    Posts
    60
    Well, from what I know (anyone can correct me if I'm wrong), but IR receivers look for the change from low to high before outputing a pulse. If you look inside the mouse, you will see the toothed wheels that pass between IR emitters and receivers. When you move the mouse, the wheel turns, blocking and then allowing the light to reach the receiver. This is what gives the low and high signal. Because this is a pulse type signal caused by the constant movement of that wheel, you can't really turn a joystick into a mouse control without using some other sort of mechanism. You'd have to be constantly slapping the joystick to one side to keep the mouse arrow moving.

    99 Ford Ranger - Bagged and laying frame

    Current Carputer project:
    Done:
    Custom mounted 7" LCD w/ TSK in radio bezel
    Custom center console for relocated headunit
    Via Epia M10000
    GPS
    MP3
    OPUS PSU
    DVD

  3. #3
    Low Bitrate
    Join Date
    Apr 2005
    Location
    Minnesota
    Posts
    73
    This much I already know, what I want to know, is what type of electrical signal is being carried to and away from those parts, sorry for not being clear.
    Da_Kooz

  4. #4
    Maximum Bitrate zPilott's Avatar
    Join Date
    Jul 2004
    Location
    Austin
    Posts
    509
    in addition to what pepe said, analog sticks generally use a potentiometer to measure deflection. Pushing or pulling on the stick changes the resistance in a signal line, and the deflection can be calculated from that.

    A mouse is generally a relative device (move X from the last position) and a joystick is an absolute device (move to X).

    Here is some info on joystick interfaces: http://www.epanorama.net/documents/j..._joystick.html

    Steering Wheel Controls

    |V1 Virtual Display|

    Hard work often pays off over time, laziness always pays off right now.

  5. #5
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    you'd probably be better off just skipping the mouse altogether. you can find information on the protocols for serial and/or PS2 mice, and all you have to do is send the right data packets directly to the computer, rather than trying to fool the optical sensor circuitry into doing it for you. I have used a PIC to communicate on the PS2 bus, it's very simple once you get the timing routines set up and make a simple routine to read/write to the PS2 bus; then you can just send data packets with numbers corresponding to the X and Y directions, the larger the number the further the mouse moves with each packet (ie- faster motion, if you are sending packets continuously)

    check out http://www.computer-engineering.org/ for information on the PS/2 bus. or google if you want to use a serial mouse; I can only assume that faking a serial mouse would be even easier.

  6. #6
    Low Bitrate
    Join Date
    Apr 2005
    Location
    Minnesota
    Posts
    73
    Thanks for the interesting reading, now i may go another way, however, I still want to know the specifics of the Input/Output electricity through a infrared emitter/reciever.
    Da_Kooz

  7. #7
    Maximum Bitrate DeltaFX's Avatar
    Join Date
    Sep 2004
    Location
    France
    Posts
    499
    An other solution is to wire the minijoystick to a game port, and use a prog to emulate mouse moves from a joystick.

Similar Threads

  1. CUSTOM!! game controler - joystick mouse - frodo controls
    By xdjxklusivex in forum Hardware Development
    Replies: 46
    Last Post: 04-02-2005, 06:10 PM
  2. PS2 3 Button(Rotary Wheel) Mouse Properties?
    By nFiniteTuning in forum Input Devices
    Replies: 4
    Last Post: 03-12-2005, 10:43 PM
  3. Replies: 4
    Last Post: 02-15-2005, 08:13 AM
  4. Smallest Touch PAd Mouse... or Shuttle Mouse QUESTION!!!
    By Boozshey in forum General Hardware Discussion
    Replies: 1
    Last Post: 01-23-2005, 03:38 AM
  5. Looking for Gear Shift/Knob as a mouse
    By Refael Azi in forum Input Devices
    Replies: 6
    Last Post: 10-10-2003, 07:14 AM

Bookmarks

Posting Permissions

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