Тoday I received the package I ordered from Seed Studio, and it contains the Grove smart IR Gesture sensor. The product is nicely packaged and comes with a basic information sheet.
This is a relatively new module, and this time I will try to make a practical device that will present its possibilities with the help of a microcontroller. During testing and development I will use utilities, libraries, and instructions from the Seed Studio site
As for microcontrollers, I plan to work with an Arduino Nano. Otherwise, the Gesture sensor module on the back side has a microswitch with 4 units, with which combinations can be changed the method of communication between I2C, SPI, and USB mode.
The fastest and easiest way to test the sensor and basic functions is using the provided Windows application Gesture Demo.
For this purpose, the module should be set in USB mode, which means that the four microswitches should be in the OFF position. On the front of the sensor, in the upper left corner, there is a small human shape. If you see the figure standing upright, then you have placed it in the correct position.
Now we need to connect the Grove Gesture Sensor to PC, start Application, and click on RUN button in the top left corner of the software and then select Gesture mode to see the results in real time.
Next, I present to you a way to make an independent device with the help of an Arduino microcontroller. This is the simplest example that will show the recognized gestures on the LCD display in text form, and at the same time will turn on the corresponding LED. LEDs can be replaced by relays that control a process, or execute another command or perform a function according to the user's needs. In a word, basically with this simple code, and with minimal modifications we can make complex functional devices. Otherwise the basic code is also taken from the Seed Studio site indicated above in the text. Writing code is not my specialty, so I'm sure it could be made much simpler, but the most important thing is that it works flawlessly. If you have knowledge, you can freely modify and simplify it.
The whole device is very simple and contains only a few components:
- Arduino microcontroller
- 16x2 characters I2C LCD Display
- 5 LEDs with suitable resistors for current control
- Buzzer
- and Grove Smart IR Gesture Sensor from Seed Studio
First we will do a finger test, where depending on the number of detected fingers, the appropriate number of LEDs are activated. Next is Swipe, which detects the direction of hand movement. For example, in this way we can change pictures in a photo album, programs on TV, or songs in a playlist. And this time, just one more test, which I think is the most interesting, and that is clockwise and counterclockwise rotation. As you can see on the video, the executed commands are constantly displayed on the LCD Display.
And finally a short conclusion:
This little module is an intelligent gesture recognition device equipped with an infrared camera sensor and applied AI algorithm. It can detect over 15 gestures with wide detection while supporting both IIC and SPI communication. In this video, I have presented the simplest way of controlling the module, thus giving you the opportunity to develop more ideas yourself and make a device according to your needs.Otherwise, you can get the module in the Seed Studio store at a really affordable price, and the address is given below in the text.
Comments