1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/converter/adb_usb
noroadsleft e9fd42df71 converter/adb_usb Configurator support and adb_usb.h cleanup (#4348)
* converter/adb_usb: Configurator support

Note: LAYOUT_ext_ansi has a blank space between the Spacebar and the
Right Alt/Option key when loaded in the Configurator. This is
deliberate.

Stock Apple Extended Keyboards and AEK IIs send the scan code for Left
Command when either Command key is used. (This is noted already in the
readme.) That being the case, the Command keys cannot be assigned to
different functions. Whichever keycode is placed on Left Command will be
used for both Command keys.

* converter/adb_usb: adb_usb.h cleanup

- replaced KEYMAP_COMMON_H with ADB_USB_H
- white space changes for visual alignment in LAYOUT_ext_ansi macro
2018-11-04 09:32:42 -08:00
..
keymaps Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
adb_usb.c Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
adb_usb.h converter/adb_usb Configurator support and adb_usb.h cleanup (#4348) 2018-11-04 09:32:42 -08:00
config.h Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
info.json converter/adb_usb Configurator support and adb_usb.h cleanup (#4348) 2018-11-04 09:32:42 -08:00
led.c Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
led.h Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
matrix.c Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
README.md Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00
rules.mk Keyboard: Ported ADB-to-USB converter from TMK to QMK (#3931) 2018-10-23 11:52:57 -07:00

ADB-to USB Keyboard Converter

This firmware converts Apple Desktop Bus (ADB) keyboard protocol to USB so that you can use an ADB keyboard on a modern computer. It works on the PJRC Teensy 2.0 and other USB AVR MCUs (ATMega32U4, AT90USB64/128, etc) and needs at least 10KB of flash memory.

This is a port of the TMK ADB-to-USB converter to QMK. For information on QMK, please consult the following: https://github.com/qmk/qmk_firmware
https://docs.qmk.fm

Wiring

Connect the VCC, GND, and DATA lines of the ADB keyboard to the controller (Teensy 2.0 or similar). By default the DATA line uses port PD0. The Power SW line is unused by the converter.

ADB female socket from the front:

  ,--_--.
 / o4 3o \      1: DATA
| o2   1o |     2: Power SW
 -  ===  -      3: VCC
  `-___-'       4: GND

This converter uses AVR's internal pull-up, but it seems to be too weak, in particular when you want to use a long or coiled cable. Using an external pull-up resistor (1K-10K Ohm) between the DATA and VCC lines is strongly recommended.

Pull-up resistor:

Keyboard       Converter
               ,------.
5V------+------|VCC   |
        |      |      |
       [R]     |      |
        |      |      |
Signal--+------|PD0   |
               |      |
GND------------|GND   |
               `------'
R: 1K Ohm resistor

Define following macros for ADB connection in config.h if you use other than port PD0.

ADB_PORT, ADB_PIN, ADB_DDR, ADB_DATA_BIT

Building the Firmware

See the build environment setup and the make instructions for more information. Brand new to QMK? Start with our Complete Newbs Guide.

Keymap

To build the default keymap run this command:

$ make converter/adb_usb:default

You may add your own keymap to the converter/adb_usb/keymaps directory, as you would with any other QMK-powered keyboard.

To build your custom keymap, change the build command to:

$ make converter/adb_usb:my_keymap

Where 'my_keymap' is the name of your custom keymap directory.

Locking Caps Lock

Many old ADB keyboards use a locking switch for the caps lock key. This converter supports the locking caps lock key by default.

Notes

Non-extended ADB keyboards make no distinction between the left and right modifiers, i.e. the keycode for the left modifier will be sent even if the right modifier

The Apple Extended Keyboard and Apple Extended Keyboard II can differentiate between the left and right modifiers except for the GUI key (Windows/Command).

Most ADB keyboards have no diodes in its matrix so they are not NKRO, though the ADB protocol itself supports it. See protocol/adb.c for more info.

QMK Port Changelog

  • 2018/09/16 - Initial release.