2012-09-04 17:46:34 +00:00
USB to USB keyboard protocol converter
======================================
2016-09-02 04:45:47 +00:00
See for detail and discussion.
https://geekhack.org/index.php?topic=69169.0
2012-09-04 17:46:34 +00:00
Hardware requirement
--------------------
2016-09-02 04:45:47 +00:00
There are two options.
### TMK USB-USB Converter
You can buy a fully assembled converter from me here.
2012-09-04 17:46:34 +00:00
2016-09-02 04:45:47 +00:00
https://geekhack.org/index.php?topic=69169.0
### Arduino Leonardo + Circuit@Home USB Host Shield 2.0
Buying Arduino Leonardo and USB Host Shield 2.0(from Circuit@home) will be better, you won't need even soldering iron.
http://arduino.cc/en/Main/ArduinoBoardLeonardo
2014-12-30 04:52:53 +00:00
https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino-assembled/
2016-09-02 04:45:47 +00:00
Other compatible boards like Arduino's Shield will also work well but I think Sparkfun's needs to be modified.
2014-12-30 04:52:53 +00:00
http://arduino.cc/en/Main/ArduinoUSBHostShield
https://www.sparkfun.com/products/9947
Also Pro Micro 3.3V(not Mini) or Teensy with mini host shield will work with some fixes on signal/power routing.
2016-09-02 04:45:47 +00:00
2014-12-30 04:52:53 +00:00
https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-for-arduino-pro-mini
https://www.sparkfun.com/products/12587
https://www.pjrc.com/teensy/td_libs_USBHostShield.html
2012-09-04 17:46:34 +00:00
Build firmware
--------------
2016-09-02 04:45:47 +00:00
Build.
2012-09-04 17:46:34 +00:00
$ git clone git://github.com/tmk/tmk_keyboard.git
$ cd tmk_keyboard
$ git submodule init
$ git submodule update
$ cd converter/usb_usb
$ make
2016-09-02 04:45:47 +00:00
And Program converter. Push button on TMK converter and just run this.
$ make dfu
In case of Leonardo push reset button then run command. Serial port name(COM17) depends your system. On Linux I got /dev/ttyACM0.
2014-12-10 05:35:46 +00:00
$ DEV=COM17 make program
or
$ avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:usb_usb.hex -PCOM17
2012-09-04 17:46:34 +00:00
Limitation
----------
Only supports 'HID Boot protocol'.
Not support keyboard LED yet.
2014-12-10 05:35:46 +00:00
2016-09-10 02:44:59 +00:00
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.
Keymap editor
-------------
You can editor keymap and download firmware with web brwoser.
- http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb
2014-12-30 04:52:53 +00:00
2014-12-10 05:35:46 +00:00
2014-12-10 15:59:08 +00:00
Update
------
2014/12/11 Added Hub support(confirmed with HHKB pro2)
2016-09-10 02:44:59 +00:00
2016/09/10 Unimap editor support
2014-12-10 15:59:08 +00:00
2014-12-10 05:35:46 +00:00
Resource
--------
2014-12-10 15:59:08 +00:00
USB Host Sheild 2.0
https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-2-0-for-arduino
https://www.circuitsathome.com/products-page/arduino-shields/usb-host-shield-for-arduino-pro-mini
USB Host Sheild 2.0 source
https://github.com/felis/USB_Host_Shield_2.0
Arduino USB Host Shield(with bootst converter)
http://arduino.cc/en/Main/ArduinoUSBHostShield
Arduino source
https://github.com/arduino/Arduino/hardware/arduino/{cores,variants}
Initial release of TMK USB-USB converter
https://geekhack.org/index.php?topic=33057.msg653549#msg653549
http://deskthority.net/workshop-f7/is-remapping-a-usb-keyboard-using-teensy-possible-t2841-30.html#p74854
Arduino-based hardware keyboard remapper - Colemak forum
http://forum.colemak.com/viewtopic.php?id=1561
Teensy + Host Shield
http://www.pjrc.com/teensy/td_libs_USBHostShield.html