With the gesture recognition, 9 different hand movements can be detected.
Further information to the sensor you will find here. Gesture recognition can be ordered here.
Gestures as a string, such as "right", "left", "wave".
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... .