Tap latency

WALT uses a “stylus” equipped with an accelerometer. The finger is imitated by a flat metal tip that is grounded, pretty much any rigid tip can be used as long as it triggers the touch sensor. When the stylus “collides” with touch screen the accelerometer senses a shock (above 3g) which is timestamped by the Teensy. In order to generate a similar shock when picking the stylus up from the screen, the conductive surface and the accelerometer are mounted on a button of a retractable pen. On the way up, the spring keeps the button in contact with the touch screen for the first few mm of motion. This allows the hand holding the main part of the pen to gain some speed to which the button is then abruptly accelerated generating an easily detectable shock.

Linux Multi Touch (MT) implementation timestamps touch events in the kernel as they arrive from the hardware. On Android the MT events are then exposed in Java as MotionEvent and include the kernel timestamp. For tap, the relevant MotionEvent types are ACTION_DOWN and ACTION_UP.

Sample measurements

DeviceOS versionACTION_DOWN [ms]ACTION_UP [ms]Kernel to Java [ms]
Nexus 5M4B30Z (6.0.1)26.915.93.3
Nexus 5XNRD91P (7.0)25.022.52.4
Nexus 7LMY47Q (5.1)29.631.01.4
Nexus 9MMB29K (6.0.1)18.719.91.3

Tap measurement Tap screenshot