Skip to content

Library to set any arduino as a USB mouse

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
License.txt
Notifications You must be signed in to change notification settings

glaukon-ariston/UsbMouse

 
 

Repository files navigation

UsbMouse

Library to set any arduino as a USB mouse.

Move mouse pointer by calling method: UsbMouse.move(x,y,z) where z indicates the wheel.

Set buttons (left,right,middle) by calling method: UsbMouse.set_buttons(l,r,m).

Install

Copy directory under your arduino libraries directory.

Usage

In arduino, go to examples -> UsbMouse -> UsbMouseDemo1

Hardware

  • two resistors of 2.2KOhm
  • one resistor of 68 Ohm
  • one zener diode: 3.6V, 0.5W Zener Diodes (1N5227) or 0.25W

Pinouts

Connect D- to Pin 4 through 68 Ohm resistor.

Connect D- to Pin 5 through 2.2KOhm resistor.

Connect D+ to Pin 2 through 68 Ohm resistor.

View virtual-usb-keyboard-schematic.jpg

About

Library to set any arduino as a USB mouse

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
License.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Assembly 41.9%
  • C 37.9%
  • PHP 10.8%
  • HTML 6.7%
  • C++ 2.7%