Logique d'implémentation du micrologiciel pour le déclencheur rapide du clavier

  1. Accueil
  2. Actualités
  3. Briefs techniques
  4. Logique d'implémentation du micrologiciel pour le déclencheur rapide du clavier

The core logic behind the firmware implementation of Rapid Trigger (RT) lies in shifting from traditional « fixed-threshold detection » to « dynamic directional detection. » Instead of relying on fixed actuation or reset points, it monitors the direction and magnitude of key displacement in real-time.


 

I. Logique de base : détection directionnelle et seuils dynamiques

Les claviers mécaniques traditionnels reposent sur des contacts physiques fixes ; une touche doit être complètement relâchée au-delà du point de réinitialisation avant de pouvoir être actionnée à nouveau. En revanche, le firmware des claviers à commutateur magnétique lit en permanence la position précise de la tige de l'interrupteur à l'aide de capteurs à effet Hall.

The core firmware logic for Rapid Trigger is as follows: once a key is pressed and reaches the initial actuation point, the subsequent « reset » determination no longer depends on a fixed position, but rather on « direction. »

Specifically, once the key is in a pressed state (having passed the user-defined initial actuation point), the firmware continuously compares sensor data between the current frame and the previous frame. As soon as it detects the stem moving upward (i.e., the position value decreases) by a distance exceeding the user-defined « RT sensitivity » threshold, the firmware immediately marks the key as « reset. » This means you do not need to lift your finger to a specific physical height; the moment your finger begins to move back, the keyboard recognizes that you intend to release the key.

 

II. Machine d'état du firmware

In firmware code (such as ZMK modules or open-source keyboard libraries), RT is typically implemented as a standalone state machine or input processor. It does not directly alter key mappings; instead, it inserts a « directional filter » layer into the logic governing key actuation and release.

1. Initial Actuation: The key must first move downward and pass the user-defined Primary Actuation Point; at this stage, the firmware outputs a « press » signal and enters the RT monitoring state.
2. Dynamic Reset: Upon entering the monitoring state, the firmware continuously calculates the derivative of the displacement (i.e., the direction). If the direction is upward (indicating release) and the accumulated upward displacement meets or exceeds the RT sensitivity threshold (e.g., 0.1mm), the firmware immediately outputs a « release » signal. At this point, the key’s physical position may still be midway through its travel, yet it has already logically reset.
3. Re-triggering: Once the logical reset occurs, the firmware resets the threshold. The finger does not need to return to the top position; simply moving downward again—provided the displacement exceeds the RT sensitivity (or returns to the primary actuation point)—is sufficient to trigger a « press » signal once more.

 

III. Intégration avec l'entrée analogique

Cette logique est rendue possible par le fait que les capteurs Hall émettent des valeurs de tension analogique continue, que le firmware convertit en données de déplacement numérique avec une précision 0.01mm via l'échantillonnage ADC. Le firmware exécute cette boucle de détection indépendamment pour chaque touche, permettant des réglages de sensibilité RT distincts pour différentes touches, telles que WASD et la barre d'espace, afin d'éviter les actionnements accidentels.

Comment fonctionne la distance de levage de la souris (LOD) et comment l'ajuster
CHERRY XTRFY PIXIU68: A 16kHz Polling Rate Magnetic Switch Keyboard Taking « 8K » to the Next Level
Menu