qmk-powered hallmoeba DIY keypad with rapid trigger

QMK-Powered Breadboard Keypad with Rapid Trigger [RP2040 Build Guide]

Required Components:

Wiring

breadboard analog keypad fritzing wiring diagram


RP2040 Pinout

Firmware

Download: https://raw.githubusercontent.com/gamaPhy/qmk-keyboards/main/release/freedom/3k/via/gamaphy_freedom_3k_via.uf2

Source: https://github.com/gamaPhy/qmk-keyboards/releases/tag/latest

Keypad Calibration

  1. Load the firmware onto the RP-2040 board
  2. While keeping the calibration button held down (right button), press all the keys through their maximum range of motion. The LED on the Pico will turn on while in calibration mode, and will turn off after calibration is computed.
  3. Release the calibration button

(Optional) Reading Keypad Debug Logs

  1. Download qmk toolbox
  2. Start qmk toolbox, and open the HID Console
  3. You should see debug messages in the HID console. 

Configuration Instructions

  1. Use the VIA webapp
    *Or if you prefer not using web-serial, download VIA from source: https://github.com/the-via/releases/releases

  2. Download the following VIA draft file by right-clicking, and pressing "Save link as...":
    https://raw.githubusercontent.com/gamaPhy/qmk-keyboards/main/release/freedom/3k/via/via.json

  3. Navigate to the "design" tab (paintbrush icon) of the VIA webapp, and load the following via draft file.
    After loading the draft file, the menu should look like this:


  4. Navigate to the "Configure" tab and select the IC icon in the bottom left to change actuation settings. (There may be more settings present for you if the `via.json` was updated since the creation of these instructions)

Debugging

  • If the keypad is spamming keys even after calibration, the firmware may be corrupted. To fix this, follow RasberryPi's instructions on resetting flash memory.
  • The hall effect sensors are sensitive to temperature drift. Temperature drift compensation has not been implemented, so if the ambient temperature changes by too much, the board may need to be recalibrated. 
    To see how much drift has occurred, you can look at the HID console to see how much the `min calibrated range` differs from the `current reading range` while keys are not pressed:
  • If the temperature drift is still a problem, the DRV5056A3QDBZR hall-effect sensor may be better because it has temperature drift compensation built in.

 

Back to blog