/USBHID_Duplicator

A device which duplicates report of USB Human Interface Device(HID), such as mouse, keyboard, joystick, etc.

Primary LanguageC++

Summary

A USB HID Duplicator is a device which duplicates report of USB Human Interface Device(HID), such as mouse, keyboard, joystick, etc.
So that, one HID device can be used to control multiple computers.

Demo Video

Mouse Keyboard Wireless Presenter
USB HID Duplicator Demo(Mouse) USB HID Duplicator demo (Keyboard) USB HID Duplicator demo (Wireless Presenter)

Component

A USB HID Duplicator consists of a master(USB Host Shield + Arduino UNO) and slaves(Arduino Leonardo).
A master and slaves are connected via I2C serial communication.

USBHID_Duplicator Diagram

Dependency

  • Arduino IDE 1.8+
  • USB Host Shield Library 2.0+

How To Use?

  1. Install USB Host Shield Library.
  2. Put "MyHID" folder into your Arduino user library directory.
  • Arduino/
    • libraries/
      • MyHID
  1. Upload "master" sketch to master(Arduino UNO board with USB Host Shield)
  2. Upload "slave" sketch to slaves(Arduino Leonardo board)
  3. Connect matster and slaves with I2C
    You need to connect SCL(A5 for UNO), SDA(A4 for Arduino UNO), GND pin
  4. Connect slaves to respective computers.(one slave for one computer)
  5. Power up mater.
  6. Done! Connect a USB HID device(ex. keyboard) to master and use it.

Reference