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.

README.md 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. This is a modification of the TMK firmware by ahtn found here https://github.com/ahtn/tmk_keyboard/tree/master/keyboard/split_keyboard
  2. COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
  3. ROW_PINS { D4, C6, D7, E6 }
  4. Custom split keyboard firmware
  5. ======
  6. Split keyboard firmware for Arduino Pro Micro or other ATmega32u4
  7. based boards.
  8. Features
  9. --------
  10. Some features supported by the firmware:
  11. * Either half can connect to the computer via USB, or both halves can be used
  12. independently.
  13. * You only need 3 wires to connect the two halves. Two for VCC and GND and one
  14. for serial communication.
  15. * Optional support for I2C connection between the two halves if for some
  16. reason you require a faster connection between the two halves. Note this
  17. requires an extra wire between halves and pull-up resistors on the data lines.
  18. Required Hardware
  19. -----------------
  20. Apart from diodes and key switches for the keyboard matrix in each half, you
  21. will need:
  22. * 2 Arduino Pro Micro's. You can find theses on aliexpress for ≈3.50USD each.
  23. * 2 TRS sockets
  24. * 1 TRS cable.
  25. Alternatively, you can use any sort of cable and socket that has at least 3
  26. wires. If you want to use I2C to communicate between halves, you will need a
  27. cable with at least 4 wires and 2x 4.7kΩ pull-up resistors
  28. Wiring
  29. ------
  30. The 3 wires of the TRS cable need to connect GND, VCC, and digital pin 3 (i.e.
  31. `PD0` on the ATmega32u4) between the two Pro Micros.
  32. Then wire your key matrix to any of the remaining 17 IO pins of the pro micro
  33. and modify the `MATRIX_COL_PINS` and `MATRIX_ROW_PINS` in `config.h` accordingly.
  34. The wiring for serial:
  35. ![serial wiring](imgs/split-keyboard-serial-schematic.png)
  36. The wiring for i2c:
  37. ![i2c wiring](imgs/split-keyboard-i2c-schematic.png)
  38. The pull-up resistors may be placed on either half. It is also possible
  39. to use 4 resistors and have the pull-ups in both halves, but this is
  40. unnecessary in simple use cases.
  41. Notes on Software Configuration
  42. -------------------------------
  43. Configuring the firmware is similar to any other TMK project. One thing
  44. to note is that `MATIX_ROWS` in `config.h` is the total number of rows between
  45. the two halves, i.e. if your split keyboard has 4 rows in each half, then
  46. `MATRIX_ROWS=8`.
  47. Also the current implementation assumes a maximum of 8 columns, but it would
  48. not be very difficult to adapt it to support more if required.
  49. Flashing
  50. --------
  51. Before you go to flash the program memory for the first time, you will need to
  52. EEPROM for the left and right halves. The EEPROM is used to store whether the
  53. half is left handed or right handed. This makes it so that the same firmware
  54. file will run on both hands instead of having to flash left and right handed
  55. versions of the firmware to each half. To flash the EEPROM file for the left
  56. half run:
  57. ```
  58. make eeprom-left
  59. ```
  60. and similarly for right half
  61. ```
  62. make eeprom-right
  63. ```
  64. After you have flashed the EEPROM for the first time, you then need to program
  65. the flash memory:
  66. ```
  67. make program
  68. ```
  69. Note that you need to program both halves, but you have the option of using
  70. different keymaps for each half. You could program the left half with a QWERTY
  71. layout and the right half with a Colemak layout. Then if you connect the left
  72. half to a computer by USB the keyboard will use QWERTY and Colemak when the
  73. right half is connected.