??? 06/03/06 23:25 Modified: 06/03/06 23:28 Read: times |
#117696 - Port pins to control mouse buttons |
I need to control 2 mouse buttons of a PC by a microcontroller board which has a 12v power supply regulated down to 5v.
The PC will be on and running. My first thought was to use 12Vdc relays with contacts connected directly to mouse buttons and coils connected through transistor drivers to P1.0 and P1.1 say but the problem will be difficult to protect against coil noise if any. My second thought was to use Mosfet transistors connecting drain and source to mouse buttons while gate to port pins. Not sure if this will work but surely it is much simpler. Do you have other ideas or comments? Please don't ask me why I need to control the mouse buttons through microcontroller because I'm not telling! Mahmood |