• sales

    +86-0755-88291180

Raspberry Pi Gesture recognition module - Jetson NANO Gesture recognition User Guide

Gesture recognition

1. Purpose

In this course, we mainly learn to use Jetson Nano and gesture recognition module.

2. Preparation

Wiring diagram as shown below.


Before use this module, we need open I2C service of Jetson NANO. 

2.2 You need to open the IIC service of Jetson NANO board.

2.3 Install I2Ctool

Input following command in command terminal,

sudo apt-get update

sudo apt-get install -y i2c-tools

Wait patiently for the successful installation to complete.

2.4 Check whether the installation is successfully

Input following command in command terminal,

apt-cache policy i2c-tools

If system output is as follows, the installation is successful.

i2c-tools:

Installed: 4.0-2

Candidate: 4.0-2

Version list:

*** 4.0-2 500

500 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 Packages

100 /var/lib/dpkg/status

2.5 Scan all i2c devices on a certain bus, and print out the device i2c bus address.

sudo i2cdetect -y -r -a 1


2.6 Install smbus

Input following command in command terminal,
sudo apt-get update
sudo apt-get install -y python3-smbus

3. About code

Please check PAJ7620U2.py file.

3.1 Define the device address and register address of the module.


3.2 Define initialization array, register array, gesture register address.


....

3.3 Through I2C, the value of the initializing array and the initializing array of gesture register are written into the corresponding registers to start and initialize the gesture recognition module.


3.4 Gesture recognition function: judge the currently recognized gesture by reading the value of the gesture recognition storage register and print out the corresponding gesture name.


3.5 After successful initialization, the gesture recognition function is cycled to judge the current gesture.


4Running code

Input following command in command terminal of jetson nano.

python3 PAJ7620U2.py

5. Experimental phenomena

After the program running, if the module is initialized successfully, Jetson NANO system will print "Gesture Sensor OK", otherwise it will print "Gesture Sensor Error". If the initialization fails, we need to run code again.

After the initialization is successful, the module will start judge the value of gesture recognition, and different gestures will print out different action names through the serial port.

Put the gesture recognition module in the vertical direction, open your palm to face the module, Swing over your palm from left to right in front of the module, Jetson NANO system will print "Left".

Swing over your palm from left to right in front of the module, Jetson NANO system will print "Right".

Swing over your palm from bottom to top in front of the module, Jetson NANO system will print "Up".

Swing over your palm from top to buttom in front of the module, Jetson NANO system will print "Down".

Approach from back to front directly in front of the module, Jetson NANO system will print "Forward".

Approach from front to back directly in front of the module, Jetson NANO system will print "Backward".

Make a fist and stretch out two or three fingers to point to the front of the module, then circle it clockwise for a while, Jetson NANO system will print "Clockwise".

Make a fist and stretch out two or three fingers to point to the front of the module, then circle it counterclockwise for a while, Jetson NANO system will print "AntiClockwise".

Wave your hand in front of the module for a while, Jetson NANO system will print "Wave".

Arduino

Micro:bit

Jetson NANO

Raspberry Pi

TAG: Spotpear Arduino IR Thermal Imaging Camera Raspberry Pi 5 inch DSI MIPI Display LCD (D) Capacitive TouchScreen 720x1280 Sipeed FPGA Tang Primer 20K Dock/Lite 128M DDR3 Development Board GW2A-LV18PG256C8/I7 Tang-Nano-20K-FPGA-Unboxing 0.85inch Screen Raspberry Pi Autofocus Camera Milk-V RJ45 PC USB Secondary Screen Industrial Modbus RTU Dual Ethernet RJ45 To 8ch POE ETH Relay (C) PoE Power over Ethernet NVIDIA-acess User Guide FT232RNL USB TO TTL Industrial UART (C) User Guide Raspberry Pi Pico 2 RP2350B 2.8 inch LCD Development Board RGB Display Round TouchScreen 480x480 LVGL QMI8658 / SD / RTC X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also Raspberry Pi 3.5 inch LCD G Display Resistive TouchScreen 60fps ST7796 320x480 Also For Arduino/Pico2/ESP32/RP2040/RP2350 Serial UART Bus Servo ST3215-HS 20KG.CM High Speed Magnetic Encoder 360° Large Torque ADXL354C Dev Board ESP32 Thermal imaging camera Pi 5 PCIe to M.2 NVMe SSD Board Sipeed Tang Primer 25K GW5A RISCV FPGA Development Board Dock SDRAM GW5A-LV25MG121 Retro Game linux