23. OCTOPUS Gesture Sensor PAJ7620U2¶
23.1. Introduction¶
OCTOPUS Gesture Sensor is PAJ7620U2 that integrates gesture recognition function with general I2C interface into a single chip. It can recognize 9 gestures including move up, move down, move left, move right, etc with a simple swipe of your hand.
23.3. Specifications¶
Item | Parameter :-: | :-: SKU|EF04078 Detection Method|Built-in approaching detection device Gesture|9 gestures including move up/down/left/right/forward/back/clockwise/anticlockwise/pulse counter Detection Scope|5-10cm Ability for Anti-background light|100k Power Supply|5V Working Temperature|-20℃~70℃ Size|23.48mm×31.28mm
23.5. Quick to Start¶
Add Package¶
Click “Advanced”in the choice of the MakeCode to find more choices.
Click “Extensions” to search with “https://github.com/elecfreaks/pxt-gesture” in the dialogue box and download the package of the Gesture sensor.
Program as the picture shows¶
Reference¶
Links:https://makecode.microbit.org/_2tdKR1cuxba3
You can also download the links below:
---Result¶
The direction of the arrow displaying on the micro:bit changes with the different gestures of your hands.