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.

167 lines
7.2 KiB

  1. FC660C Alt Controller
  2. =================
  3. This file and the entire QMK port of this board are based on its TMK implementation: https://github.com/tmk/tmk_keyboard/tree/master/keyboard/fc980c
  4. ------------
  5. - Keyboard Maintainer: [Balz Guenat](https://github.com/BalzGuenat)
  6. - Hardware Supported: Hasu's Alt Controller (see below)
  7. - Hardware Availability: https://geekhack.org/index.php?topic=90317.0
  8. Make example for this keyboard (after setting up your build environment):
  9. make fc660c:default
  10. See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
  11. To flash the firmware, press the reset button on the controller and run:
  12. sudo make fc660c:default:dfu
  13. --------
  14. Thread on Geekhack: https://geekhack.org/index.php?topic=88439.0
  15. Also: https://geekhack.org/index.php?topic=88720.0
  16. Actuation Point adjustment
  17. --------------------------
  18. You can adjust the actuation point of the keys by setting `ACTUATION_DEPTH_ADJUSTMENT` in `config.h`.
  19. A value above 0 will result in a deeper, less sensitive actuation whereas a value above 1 will result in a more shallow, more sensitive actuation.
  20. Be careful with this setting and use small values (+/-5).
  21. See the `actuation-point-example` keymap of the `fc980c` keyboard for an example.
  22. For more information, inspect the `fc660c_i2c` branch of TMK [here](https://github.com/tmk/tmk_keyboard/tree/fc660c_i2c).
  23. Functionality for writing to the EEPROM has deliberately not been included to reduce the chance of people messing up their boards.
  24. Pinouts
  25. -------
  26. |Switch |Controller |
  27. | board | board |Description |Schematic |ATmega32u4
  28. |--------|-----------|--------------------------------------|-----------|------------
  29. | 1 |20 | FG |FG |GND
  30. | 2 |19 | GND |GND |GND
  31. | 3 |18 | GND |GND |GND
  32. | 4 |17 | 3.3V |V33 |3.3V/5V
  33. | 5 |16 | 5V |Vcc |5V
  34. | 6 |15 |*Z6-TP1684-4-HYS(o) |FBSTB |PC7
  35. | 7 |14 |*Z6-TP1684-2-KEY(i) |OUT |PC6
  36. | 8 |13 |*Z2-AD5258-5-SCL(I2C) |SCL |PD0(TWI)
  37. | 9 |12 |*Z2-AD5258-4-SDA(I2C) |SDA |PD1(TWI)
  38. |10 |11 |*Z4-LV4051A-6-~EN(Col 0-7) |INH_1 |PB4
  39. |11 |10 |*Z5-LV4051A-6-~EN(Col 8-F) |INH_2 |PB3
  40. |12 | 9 |+Z7-LV07A-5 (LV4051A-9-C) |SEL_C |PB2
  41. |13 | 8 |+Z7-LV07A-1 (LV4051A-10-B) |SEL_B |PB1
  42. |14 | 7 |+Z7-LV07A-3 (LV4051A-11-A) |SEL_A |PB0
  43. |15 | 6 |+Z3-LVC138A-3-C |COL4 |PD6
  44. |16 | 5 |+Z3-LVC138A-2-B |COL3 |PD5
  45. |17 | 4 |+Z3-LVC138A-1-A |COL2 |PD4
  46. |18 | 3 |+Z3-LVC138A-4-~G2A Z6-TP1684-5-~EN |COL1 |PD7
  47. |19 | 2 |+Z7-LV07A-11-~InsertLED |LED1 |PB5
  48. |20 | 1 |+Z7-LV07A-13-~CapsLED |LED2 |PB6
  49. ```
  50. * 5V intferface
  51. + 3.3V interface
  52. ```
  53. - Connector on Switch board: https://i.imgur.com/Zi89xO5.jpg
  54. - Connector on Controller board: https://i.imgur.com/9SZUzYo.jpg
  55. Key Matrix
  56. ----------
  57. Row5-7 have no key, you can omit scaning on those lines. Topre original controller scans those rows for some reason.
  58. | |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |A |B |C |D |E |F |
  59. |----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|
  60. | 0|Q |W |E |Tab |R |U |T |Y |O |P |[ |I |] | |\ |Del |
  61. | 1|1 |2 |3 |Esc |4 |7 |5 |6 |9 |0 |- |8 |= | |BSpc|Ins |
  62. | 2| |LWin|LAlt|LCtl| | | |Spc |RAlt| |RCtl| |Fn |Down|Left|Rght|
  63. | 3| |Z |X |LSft|C |N |V |B |, |. |/ |M |RSft|Up | | |
  64. | 4|A |S |D |Caps|F |J |G |H |L |; |' |K | | |Entr| |
  65. | 5| | | | | | | | | | | | | | | | |
  66. | 6| | | | | | | | | | | | | | | | |
  67. | 7| | | | | | | | | | | | | | | | |
  68. Logic analyzer pics:
  69. - http://i.imgur.com/9XoNTev.png
  70. - https://i.imgur.com/5FCP1Ay.png
  71. This code emuluates what original cotnroller does for matrix scan.
  72. - https://github.com/tmk/tmk_keyboard/blob/master/keyboard/fc660c/fc660c.c
  73. ### Row designation
  74. LV138A(Z3) selects a row line and gives strobe by enabling with ~G2A(18).
  75. |Row |A/17|B/16|C/15|
  76. |----|----|----|----|
  77. |0 |0 |0 |0 |
  78. |1 |1 |0 |0 |
  79. |2 |0 |1 |0 |
  80. |3 |1 |1 |0 |
  81. |4 |0 |0 |1 |
  82. |5 |1 |0 |1 |
  83. |6 |0 |1 |1 |
  84. |7 |1 |1 |1 |
  85. ### Column designation
  86. LV4051A(Z4, Z5) select one of 16 column lines to sense capacitance of switches.
  87. |Col |A/14|B/13|C/12|Z4-EN/10|Z5-EN/11|
  88. |----|----|----|----|--------|--------|
  89. |0 |0 |0 |0 |0 |1 |
  90. |1 |1 |0 |0 |0 |1 |
  91. |2 |0 |1 |0 |0 |1 |
  92. |3 |1 |1 |0 |0 |1 |
  93. |4 |0 |0 |1 |0 |1 |
  94. |5 |1 |0 |1 |0 |1 |
  95. |6 |0 |1 |1 |0 |1 |
  96. |7 |1 |1 |1 |0 |1 |
  97. |8 |0 |0 |0 |1 |0 |
  98. |9 |1 |0 |0 |1 |0 |
  99. |A |0 |1 |0 |1 |0 |
  100. |B |1 |1 |0 |1 |0 |
  101. |C |0 |0 |1 |1 |0 |
  102. |D |1 |0 |1 |1 |0 |
  103. |E |0 |1 |1 |1 |0 |
  104. |F |1 |1 |1 |1 |0 |
  105. FCC documents
  106. -------------
  107. https://fccid.io/RPKFC660C
  108. - schematic: https://fccid.io/pdf.php?id=1888185
  109. - part list: https://fccid.io/pdf.php?id=1888184
  110. Datasheets
  111. ----------
  112. - Hirose DF14A-20P-1.25H: http://www.mouser.com/ds/2/185/DF14_catalog-939195.pdf
  113. - LV07A: http://www.ti.com/lit/ds/symlink/sn74lv07a.pdf
  114. - LV138A: http://www.ti.com/lit/ds/symlink/sn74lvc138a.pdf
  115. - LV4051A: http://www.ti.com/lit/ds/symlink/sn74lv4051a.pdf
  116. - AD5258: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5258.pdf
  117. 3.3V power supply
  118. -----------------
  119. LV07A and LVC138A are 5V-tolerant and can be powered with 5V, the keyboard will work only with 5V power supply. It may not be completely safe to operate LV138A with 5V Vcc, its datasheet says:
  120. > Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
  121. Digipot AD5258
  122. --------------
  123. Controller can operate AD5258 via I2C to change actuation point of keys. This may make keyboard unusable accidentally and it will be difficult to recovery in some situation. For safety firmware doesn't support it at this point, though.
  124. Lower value of RDAC register causes shallower actuation point.
  125. Resources
  126. ---------
  127. - Pics: https://imgur.com/a/UTR8Z