Hi everyone hope someone can help! I need an electrician or some who maybe good at wiring model trains?? I need to wire computer mouse up to turn some lights on for a fish tank, odd I know. It basically a computer turned into a tank and what is when you click a mouse it puts the light on when you release they go off - simple - not! Racked my brains how to do this, basically a micro switch in the mouse somehow spliced into the cable of the lights? Anyone help!!
Sally
Your best solution will be to keep the mouse almost completely stock...
Open it up and unsolder the wires from the board, and wire them directly to the buttons.
There should be 4 wires, so you can easily take care of the Left-Middle-Right buttons.
From there, you can either cut off the other end of the cable (recommended to prevent you from plugging this device into a real computer) or wire an adaptor onto the end of the cable.
The modified wires will then go to a small custom circuit that you design that will use transistors, and optionally a relay that will switch your lights on and off.
*Note that the buttons in the mouse are 'momentary' and the suggested method will result in the lights only coming on while the mouse button is held down. When the button is released the lights will turn off.