Gesture recognition
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.
port: | A0 |
interface: | I²C |
output values | Gestures as a string, such as "right", "left", "wave". |
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... .