Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

A simply trick for interpret a 16-bit/axis mouse using USB_Host_Shield_2.0. (Logitech G502)

Notifications You must be signed in to change notification settings

mustaffxx/usb-host-shield-mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

usb-host-shield-mouse

This project is an example of using a USB HOST SHIELD 2.0 to interface with a Logitech G502 mouse. The problem with many USB Host Shield examples is that they use the HID Boot Protocol, whereas the G502 uses the HID Report Protocol. This example demonstrates how to use the USB Host Shield with the G502, by interpreting 8-bit data from the mouse and replicating it to the computer.

[USB Mouse] --> [USB Host Shield 2.0] --> [Arduino Leonardo] --FAKE HID USB--> [Computer]

Hardware Requirements

  • Arduino Leonardo
  • USB Host Shield 2.0
  • Logitech G502

How to Use

  1. Connect the USB Host Shield to the Arduino Leonardo.
  2. Connect the G502 mouse to the USB Host Shield.
  3. Upload the USBHostShieldMouse.ino sketch to the Arduino Leonardo.
  4. Open the Arduino Serial Monitor and select a baud rate of 115200.
  5. Move the mouse around and click the buttons to see the output on the Serial Monitor.

To Do

  • Parse 16-bit precision

About

A simply trick for interpret a 16-bit/axis mouse using USB_Host_Shield_2.0. (Logitech G502)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages