Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mouse hack by switching wires in USB plug  (Read 2957 times)

0 Members and 1 Guest are viewing this topic.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Mouse hack by switching wires in USB plug
« on: May 13, 2005, 12:54:01 pm »
Ok, I have mentioned my wishes reagrding my mice hacks a few times, although I have a new idea and wanted to see whether you think it would work .
« Last Edit: May 13, 2005, 12:57:32 pm by unclet »

tetsujin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 222
  • Last login:April 10, 2007, 05:51:25 pm
  • My controls will have programmable button labels.
    • My Homepage
Re: Mouse hack by switching wires in USB plug
« Reply #1 on: May 13, 2005, 02:18:10 pm »
1) What are the colored wires used for in a Belkin USB mouse?

For any USB device, the colors (black, red, green, white) correspond to the USB ground, 5V source, and the D+/D- signal lines, respectively.  The extra black may be for the shielding ground or something.

Some USB mice also support a PS/2 connection, usually using an adaptor connected to the USB plug.  The mouse detects that it's connected to that adaptor, and its internal circuitry switches to the PS/2 protocol

Quote
2) If one of the wires is for X-axis movement and the other one is for Y-axis movement, then it seems like I could simply swap the two wires from the USB cable to the PCB and achieve what I want .... correct?  Basically, allowing the X-axis hack information be sent through the USB cable as Y-axis information.  For example ... let s say the RED wire represented X-axis movement signalling and the WHITE wire represented the Y-axis movement signalling.   If I simply switched positions of the RED and WHITE wires with each other, then would I achieve my goal?

It doesn't work that way.

The red and black lines are the power source, of course, and the D+/D- lines carry signals to and from the device.  The signals are represented as a binary stream - you can't switch those wires and expect any kind of useful result.

Any wire switching has to be done at the other end of the cable, inside the mouse itself.
---GEC

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Mouse hack by switching wires in USB plug
« Reply #2 on: May 13, 2005, 02:38:03 pm »
Thanks for the description ... one more thing .....

My plan is now to cut the traces on the PCB for the X-axis optics and then wire the X-axis optics solder points to the Y-axis optics solder points.  However, will a USB Belkin mouse react weird if the X-axis traces are permanently cut?  I mean without those traces being connected will the USB mouse consider the mouse position to always be hard right or hard left, rather than in the middle (ie: not being moved at all)


cholin

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:July 16, 2009, 09:22:25 pm
    • Nilok Productions
Re: Mouse hack by switching wires in USB plug
« Reply #3 on: May 13, 2005, 05:54:03 pm »
If you do it all right, the mouse doesnt care where the traces go through, as long as the right signals are being sent to the processor.  You can cut the traces and the mouse will work fine...

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Mouse hack by switching wires in USB plug
« Reply #4 on: May 13, 2005, 11:22:16 pm »
Thanks for the description ... one more thing .....

My plan is now to cut the traces on the PCB for the X-axis optics and then wire the X-axis optics solder points to the Y-axis optics solder points.  However, will a USB Belkin mouse react weird if the X-axis traces are permanently cut?  I mean without those traces being connected will the USB mouse consider the mouse position to always be hard right or hard left, rather than in the middle (ie: not being moved at all)
If I understand correctly - your goal is to have a single mouse hack - dual axis when done.

IE - The first mouse is basically just the Twisty-hack - I.e the X-Axis optics running unchanged to the PC.

The Y-Axis terminals on this hack will have the sensors removed and will be routed to the X-Axis sensors on the second mouse hack, mounted in a different location on the CP.

The Y-Axis terminals on the second hack will stay connected to its circuit board, but will be dead as the second mouse will NEVER BE CONNECTED TO THE COMPUTER.  (except the X-axis sensors running back to the first mouse Y-Axis.

Is This Correct?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Mouse hack by switching wires in USB plug
« Reply #5 on: May 14, 2005, 09:37:12 am »
I found a way to attach the flywheel to the PCB of the Y-axis afterall ... so this post is no longer valid for me anymore ... however, I will explain what I was trying to do more clearly ... I hope....

I currently have two USB mouse hacks (via Twisty Grip) on my control panel and they are both hacked to the X-axis.
« Last Edit: May 14, 2005, 09:39:47 am by unclet »

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Mouse hack by switching wires in USB plug
« Reply #6 on: May 14, 2005, 09:48:16 am »
so this post is no longer valid for me anymore.

Yeah, I figured that out AFTER I replied and then read your other post which I also replied to.

BTW, I guess it's two late now, but couldn't you have used Analog Plus and mapped Player 1 to Mouse 1 X-axis and Player 2 to Mouse 2 X-axis?
Quote
PS:  I ended up not performing this type of design since I figured out a way to simply move my flywheel so it is positioned between the Y-axis light emitter/receiver components ..... which was the easy way to do what I wanted ... although originally I thought this would not be possible due to the type of mouse PCB I was using.
Now I'm confused.  Flywheel one goes thru the mouse 1 X-axis.  Does Flywheel 2 go through the Mouse 1 or Mouse 2 Y-axis?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Mouse hack by switching wires in USB plug
« Reply #7 on: May 14, 2005, 12:27:34 pm »
I ended up just having two basic Twisty Grip USB mouse hacks.  One mouse has it's flywheel going through the X-axis optics and the other mouse has it's flywheel going through the Y-axis.  Simple.

I did not perform any soldering or wiring to get this working.

I believe I could not use Analog Plus since it did not have the game Pong included ..... however, it was a long time ago which I decided using Analog Plus was not what I needed .... I do not truely remember why.   I really have been stalling doing this for a very long time ..... 

Anyway, in order to play Pong, I needed NoNameMame so I went from there.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Mouse hack by switching wires in USB plug
« Reply #8 on: May 14, 2005, 12:55:30 pm »
I ended up just having two basic Twisty Grip USB mouse hacks.  One mouse has it's flywheel going through the X-axis optics and the other mouse has it's flywheel going through the Y-axis.  Simple.
I did not perform any soldering or wiring to get this working.
Okay, I got it!!!
Quote
Anyway, in order to play Pong, I needed NoNameMame so I went from there.
Okay, most versions of NoName include the analog Plus changes, so I could be referring to either one.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.