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.

93 lines
3.1 KiB

  1. # Dactyl with Arduino Pro Micro
  2. See https://github.com/adereth/dactyl-keyboard for the original Version.
  3. This Dactyl uses the Arduino Pro Mirco (2x).
  4. Wiring is a 6x6 Matrix like the [Dactyl Manuform](https://github.com/qmk/qmk_firmware/tree/master/keyboards/handwired/dactyl_manuform)
  5. ## Build the Firmware:
  6. - Build the firmware with `make handwired/dactyl_promicro:<keymapname>`, for example `make handwired/dactyl:default`
  7. - This will result in a hex file called `handwired_dactyl_promicro_<keymapname>.hex`, e.g.
  8. `handwired_dactyl_promicro_default.hex`
  9. How to setup your build enviroment can be found here: [Installing Build Tools](https://docs.qmk.fm/#/getting_started_build_tools)
  10. ## Required Hardware
  11. Apart from diodes and key switches for the keyboard matrix in each half, you
  12. will need:
  13. * 2 Arduino Pro Micros. You can find these on AliExpress for ≈3.50USD each.
  14. * 2 TRRS sockets and 1 TRRS cable, or 2 TRS sockets and 1 TRS cable
  15. Alternatively, you can use any sort of cable and socket that has at least 3
  16. wires. If you want to use I2C to communicate between halves, you will need a
  17. cable with at least 4 wires and 2x 4.7kΩ pull-up resistors
  18. ## Optional Hardware
  19. A speaker can be hooked-up to either side to the `5` (`C6`) pin and `GND`, and turned on via `AUDIO_ENABLE`.
  20. ## Wiring
  21. The 3 wires of the TRS/TRRS cable need to connect GND, VCC, and digital pin 3 (i.e.
  22. PD0 on the ATmega32u4) between the two Pro Micros.
  23. Next, wire your key matrix to any of the remaining 17 IO pins of the pro micro
  24. and modify the `matrix.c` accordingly.
  25. The wiring for serial:
  26. ![serial wiring](https://i.imgur.com/C3D1GAQ.png)
  27. The wiring for i2c:
  28. ![i2c wiring](https://i.imgur.com/Hbzhc6E.png)
  29. The pull-up resistors may be placed on either half. It is also possible
  30. to use 4 resistors and have the pull-ups in both halves, but this is
  31. unnecessary in simple use cases.
  32. You can change your configuration between serial and i2c by modifying your `config.h` file.
  33. ## Notes on Software Configuration
  34. the keymaps in here are for the 4x5 layout of the keyboard only.
  35. ## Flashing
  36. To flash your firmware take a look at: [Flashing Instructions and Bootloader Information](https://docs.qmk.fm/#/flashing).
  37. Under Windows the most convenient way is installing the [QMK Drivers](https://github.com/qmk/qmk_driver_installer/releases) and use the [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases).
  38. ## Choosing which board to plug the USB cable into (choosing Master)
  39. ### Setting the right or left hand as master
  40. If you always plug the usb cable into the right board, add an extra flag to your `config.h`
  41. ```
  42. #define MASTER_RIGHT
  43. ```
  44. OR
  45. ```
  46. #define MASTER_LEFT
  47. ```
  48. Notes on Using Pro Micro 3.3V
  49. -----------------------------
  50. Do update the `F_CPU` parameter in `rules.mk` to `8000000` which reflects
  51. the frequency on the 3.3V board.
  52. Also, if the slave board is producing weird characters in certain columns,
  53. update the following line in `matrix.c` to the following:
  54. ```
  55. // _delay_us(30); // without this wait read unstable value.
  56. _delay_us(300); // without this wait read unstable value.
  57. ```