Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. USB to USB keyboard protocol converter
  2. ======================================
  3. See for detail and discussion.
  4. https://geekhack.org/index.php?topic=69169.0
  5. Hardware requirement
  6. --------------------
  7. There are two options.
  8. ### TMK USB-USB Converter
  9. You can buy a fully assembled converter from me here.
  10. https://geekhack.org/index.php?topic=69169.0
  11. ### Arduino Leonardo + Circuit@Home USB Host Shield 2.0
  12. Buying Arduino Leonardo and USB Host Shield 2.0(from Circuit@home) will be better, you won't need even soldering iron.
  13. http://arduino.cc/en/Main/ArduinoBoardLeonardo
  14. https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino-assembled/
  15. Other compatible boards like Arduino's Shield will also work well but I think Sparkfun's needs to be modified.
  16. http://arduino.cc/en/Main/ArduinoUSBHostShield
  17. https://www.sparkfun.com/products/9947
  18. Also Pro Micro 3.3V(not Mini) or Teensy with mini host shield will work with some fixes on signal/power routing.
  19. https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-for-arduino-pro-mini
  20. https://www.sparkfun.com/products/12587
  21. https://www.pjrc.com/teensy/td_libs_USBHostShield.html
  22. Build firmware
  23. --------------
  24. Build.
  25. $ git clone git://github.com/tmk/tmk_keyboard.git
  26. $ cd tmk_keyboard
  27. $ git submodule init
  28. $ git submodule update
  29. $ cd converter/usb_usb
  30. $ make
  31. And Program converter. Push button on TMK converter and just run this.
  32. $ make dfu
  33. In case of Leonardo push reset button then run command. Serial port name(COM17) depends your system. On Linux I got /dev/ttyACM0.
  34. $ DEV=COM17 make program
  35. or
  36. $ avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:usb_usb.hex -PCOM17
  37. Limitation
  38. ----------
  39. Only supports 'HID Boot protocol'.
  40. Note that the converter can host only USB "boot protocol" keyboard(6KRO), not NKRO, it is possible to support NKRO keyboard but you will need to write HID report parser for that. Every NKRO keyboard can have different HID report and it is difficult to support all kind of NKRO keyboards in the market.
  41. Keymap editor
  42. -------------
  43. You can editor keymap and download firmware with web brwoser.
  44. - http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb
  45. Update
  46. ------
  47. 2014/12/11 Added Hub support(confirmed with HHKB pro2)
  48. 2016/09/10 Unimap editor support
  49. 2016/10/18 Fix LED state at startup
  50. Resource
  51. --------
  52. USB Host Sheild 2.0
  53. https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino
  54. https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-for-arduino-pro-mini
  55. USB Host Sheild 2.0 source
  56. https://github.com/felis/USB_Host_Shield_2.0
  57. Arduino USB Host Shield(with bootst converter)
  58. http://arduino.cc/en/Main/ArduinoUSBHostShield
  59. Arduino source
  60. https://github.com/arduino/Arduino/hardware/arduino/{cores,variants}
  61. Initial release of TMK USB-USB converter
  62. https://geekhack.org/index.php?topic=33057.msg653549#msg653549
  63. http://deskthority.net/workshop-f7/is-remapping-a-usb-keyboard-using-teensy-possible-t2841-30.html#p74854
  64. Arduino-based hardware keyboard remapper - Colemak forum
  65. http://forum.colemak.com/viewtopic.php?id=1561
  66. Teensy + Host Shield
  67. http://www.pjrc.com/teensy/td_libs_USBHostShield.html