keybrd library is an open source library for creating custom-keyboard firmware.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.

tutorial_4_connecting_split_keyboards.md 3.9KB

7 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. keybrd Tutorial 4 - Connecting split keyboards
  2. ===============================================
  3. Split keyboards have left and right parts:
  4. * one keyboard half contains the controller and USB port.
  5. * the other keyboard half can contain shift registers or an I/O expander.
  6. The two halves need to be connected.
  7. The preferred connection method depends on the number of keys, number of available controller pins, cable flexibility, LEDs, and cost.
  8. ## Split keyboard connections table
  9. | connection type | controller pins | wire count | max keys |
  10. |------------------------|:---------------:|:----------:|:--------:|
  11. | just cable | 3 | 6 | 9 |
  12. | just cable | 3 | 7 | 12 |
  13. | just cable | 4 | 8 | 16 |
  14. | just cable | 4 | 9 | 20 |
  15. | | | | |
  16. | 2 PISO shift registers | 3 | 5 | 16 |
  17. | 3 PISO shift registers | 3 | 5 | 24 |
  18. | | | | |
  19. | I/O expander SPI | 4 | 6 | 64 |
  20. | I/O expander I2C | 2 | 4 | 64 |
  21. Fewer wires makes a cable more flexible.
  22. A flexibility cable makes it easy to position the keyboard and route the cable.
  23. But if there are enough pins on the controller, using just a cable with more wires is simpler and costs less.
  24. I/O Expanders can power LEDs, while PISO shift registers can not.
  25. I2C is fast enough for scanning up to 5 rows.
  26. SPI is much faster, but requires 2 additional wires.
  27. More scanning options are reviewed at http://www.openmusiclabs.com/learning/digital/input-matrix-scanning/
  28. ## Cables table
  29. | connector name | wire count |
  30. |-------------------------------------------------------|:----------:|
  31. | TRRS | 4 |
  32. | 6-pin mini-DIN connector (PS/2) | 4 |
  33. | USB 2 | 4 |
  34. | 4P4C Modular connector (RJ9, RJ10, RJ22) handset plug | 4 |
  35. | 6P4C Modular connector (RJ-14) 2-line phone | 4 |
  36. | 6P6C Modular connector (RJ12) 3-line phone | 6 |
  37. | eSATA | 7 |
  38. | 8p8c Modular connector (RJ45) Ethernet | 8 |
  39. | USB 3.0, 3.1 | 9 |
  40. Only ready-made cables that are widely available are listed.
  41. There are hundreds of other connectors listed at http://pinouts.ru/
  42. There are also wireless options at the expense of adding complexity and maintaining a battery.
  43. The 8-wire "GearIT Cat 6 Ethernet Flat Patch Cable 7 Feet" is very flexible.
  44. It's available at Walmart (9/19/16) if you want to feel the merchandise before you buy.
  45. All the modular connector cables are available in the flat form factor.
  46. For prototyping on perfboards, consider a 0.1" header.
  47. <br>
  48. <a rel="license" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">keybrd tutorial</span> by <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd" property="cc:attributionName" rel="cc:attributionURL">Wolfram Volpi</a> is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd/issues/new" rel="cc:morePermissions">https://github.com/wolfv6/keybrd/issues/new</a>.