index.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. The Keyboard
  2. ============
  3. .. image:: keyboard.pdf
  4. :target: keyboard.pdf
  5. The keyboard is a row/column matrix scanner with anti-ghosting diodes on each switch. Each row and column is connected to one pin of the ATMega32U4_ 8-bit microcontroller. This microcontroller runs a firmware based on LUFA_. This converts the scanned out keycodes to the USB HID protocol.
  6. Firmware
  7. --------
  8. You can find the Reform keyboard firmware_ in the source folder "reform-keyboard-fw".
  9. To modify the scancodes of the keyboard matrix, edit the file Keyboard.c and rebuild the firmware by typing the following command in a terminal:
  10. .. code-block:: none
  11. make
  12. To be able to flash the firmware to the keyboard, the ATMega has to be in a special mode where it identifies as an "Atmega DFU bootloader" USB device. This is achieved by shorting the pins HWB and GND with a jumper and then briefly shorting the RESET pin to ground.
  13. The RESET pin is pin 2 of J1, pin 1 is GND.
  14. HWB and GND are pins 3 and 4 of J3, respectively. Start counting at the "J3" label.
  15. The keyboard will reappear as a Atmel DFU bootloader USB device. You can then upload your new firmware by executing:
  16. .. code-block:: none
  17. ./flash.sh
  18. Replacing a Keycap
  19. ------------------
  20. The keycaps of the Reform beta units are printed with Clear Resin on Formlabs Form2 printers and then sanded by hand. Small irregularities are normal and a result of this process. The stems of the square 1x1 keycaps are slightly wider than the stems of other keycaps to make them more stable. This makes them harder to remove without breaking a stem. If a stem breaks inside of the keyswitch, you'll have to replace the keyswitch (see the following section).
  21. To pull out bigger keycaps, use pincers and try to push them between the top of the switch and the cap and wiggle very carefully and evenly until you can pull out the cap.
  22. There are some companies who produce "standard" Cherry ML keycaps, such as GMK_.
  23. Replacing a Keyswitch
  24. ---------------------
  25. Only 2 of the 4 Cherry ML switch pins are soldered in to make it easier to swap switches with just a soldering iron. Set your iron/station to 380 degrees and dissolve the solder of one pin. Try to pull out the corresponding side of the switch from the top while continuing to heat the pin. Repeat the same for the other pin and go back and forth until you can remove the switch.
  26. Replace with model Cherry ML1A-11JW.
  27. .. _LUFA: http://www.fourwalledcubicle.com/files/LUFA/Doc/170418/html/
  28. .. _ATMega32U4: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf
  29. .. _GMK: https://www.gmk-electronic-design.de/en.html
  30. .. _firmware: https://github.com/mntmn/reform/reform-keyboard-fw
  31. Keyboard Schematics (Matrix)
  32. ----------------------------
  33. .. image:: reform-keyboard-page-1b.pdf
  34. :target: reform-keyboard-page-1.pdf
  35. Keyboard Schematics (Controller)
  36. --------------------------------
  37. .. image:: reform-keyboard-page-2b.pdf
  38. :target: reform-keyboard-page-2.pdf