Gesture recognition
port: |
Grove: A0 (C19, C20) |
interface: | I²C |
output values |
Gestures as a string, such as "right", "left", "wave". |
Further information: | https://wiki.seeedstudio.com/Grove-Gesture_v1.0/ |
Order: | https://www.reichelt.de/de/de/arduino-grove-gestensteuerung-paj7620u2-grv-gesture-p191244.html?PROVID=2788&gclid=Cj0KCQiAk53-BRD0ARIsAJuNhpsu5XhsjtiobxtLJzEr6apMSlNIjZfiDm72IzrEKeBFqz4kTCMfXqIaAuPyEALw_wcB&&r=1 |
With the gesture recognition, 9 different hand movements can be detected.
Makecode
The gesture control is already integrated in the Grove package. After initializing Grove gesture recognition at startup, there are two possible ways to read the sensor's values:
- Using the when grove gesture... event block.
- Within the loop, by comparing and querying the gestures in an if-then statement. E.g. if read gesture = right, then... .