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

SolarGranulation/UsbMouse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages

  • C 56.1%
  • C++ 33.1%
  • Assembly 9.8%
  • Other 1.0%