Pages: [1]   Go Down
Author Topic: Simulate Click Mouse with Button  (Read 581 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, i can simulate the Left Click button from my Macbook with a one Button on my arduino?

Massachusetts, USA
Offline Offline
Tesla Member
Karma: 212
Posts: 8913
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's fairly easy if your Arduino is a Leonardo model. See File->Examples->09.USB(Leonardo)->Mouse->ButtonMouseControl

For other models it's not so easy.  For the UNO and Mega models you can write new firmware into the small ATmega processor used as a USB-to-Serial adapter.  For other models you can use the V-USB code to bit-bang USB 1.1 with just a couple of resistors.

A third choice is to gut an old USB mouse and use the Arduino to bridge the pins for the click button.

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: