??? 06/03/06 23:58 Read: times |
#117698 - Questions Responding to: ???'s previous message |
Mahmood Elnasser said:
I need to control 2 mouse buttons of a PC by a microcontroller board which has a 12v power supply regulated down to 5v. What do you mean by "control?" Mahmood Elnasser said:
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. Are you aware of the PS/2 protocol? That's how your PC "listens" to the mouse. It's a published protocol by means of which you can gain access to the PS/2 port. Mahmood Elnasser said:
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? I think you'll find that introducing your external MCU's signals via the PS/2 cable will be quite straightforward. Mahmood Elnasser said:
Please don't ask me why I need to control the mouse buttons through microcontroller because I'm not telling!
Mahmood I wouldn't think of it! RE |