Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
/ Usb2Ps2Mouse Public archive

Convert a USB mouse into a PS/2 mouse with the power of arduino :-)

License

Notifications You must be signed in to change notification settings

ChrisDeadman/Usb2Ps2Mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usb => Ps2Mouse v0.2

Author: ChrisDeadman

Convert a USB mouse into a PS/2 mouse with the power of arduino :-)

Note: This is obsolete and has been superseded by usb-to-ps2-gameport-hat.

Example Device

Notes

  • Provides IntelliMouse support (5 buttons + scrollwheel)
  • Watchdog timer is enabled and configured to 4sec
  • You need to lower USB_XFER_TIMEOUT (e.g. to 50) in UsbCore.h (part of the used platform library)
    Usb.Task() may otherwise take longer than the watchdog's timeout and the chip will just reset over and over
  • Diagnostic information is available via Serial1 - of course not USB since where else would you plug your mouse :D
    Sent/Received data + Status is returned by sending any character to Serial1 @ 115200 8N1
  • Use an USB OTG cable to connect your USB mouse to the board
  • CLOCK(pin8) and DATA(pin2) pins can be changed in PS2PortSAMD21.h
    check avrfreaks for instruction on how to hook up a PS/2 connector to it
  • Don't forget that SAMD21 has 3.3V rated pins, so you should really use level-converters to avoid any damage
  • Note that PS/2 ports are only rated up to 250mA, so be careful which USB devices you connect

(Known) Limitations

  • It is not a keyboard (altho the included PS2Device library can be used to build one)

Supported Arduino Boards

  • ATSAMD21G18 (developed on SparkFun SAMD21 Mini Breakout)

Low-level documentation about the PS/2 protocol can be found at avrfreaks

Release notes

Usb => Ps2Mouse v0.2

  • Switch to PlatformIO IDE
  • Move PS2 code to dedicated PS2Device library for better usability
  • Implement custom HIDMouseController for 5 button + scrollwheel support
  • Add IntelliMouse support (5 buttons + scrollwheel)

Usb => Ps2Mouse v0.1

  • Initial version