Mouse Output?

Hello,

How can I make my Arduino spit out x and y data that can be used to move a computer’s mouse? Initially, I’ll have to use USB, but I would hope I can do this over Bluetooth as well.

Thanks!

Don’t you mean “to act like a mouse” ?

http://www.youtube.com/watch?v=unugcaJwGFs

Exactly! Thanks!

Mee_n_Mac:
Don’t you mean “to act like a mouse” ?

http://www.youtube.com/watch?v=unugcaJwGFs

If you don’t mind me thread jacking a little bit.

I was looking for something like this, but with the addition of the new 16u2. I was hoping that it would be possible to make it without the need for the extra USB connector.

While I have not done this, I have read a bit about changing the 8U2 or 16U2 to appear as a different device. What you have to do is either solder in and program via the secondary ISP header on the Uno or set the 8U2 or 16U2 into DFU programming mode and update the firmware on the 8U2 to something that supports communication to the Arduino and changes the USB IDs to be that of a USB mouse.

This will get you started on the DFU mode:

http://arduino.cc/en/Hacking/DFUProgramming8U2

Enjoy!