Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
PAJ7620U2 Gesture Sensor,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.
| PIN | SYMBOL | Description |
| 1 | VCC | 3.3V/5V |
| 2 | GND | Ground |
| 3 | SDA | I2C data pin |
| 4 | SCL | I2C clock pin |
| 5 | INT | External interrupt pin |
We provide demo codes for easy testing, you can download the demo codes from #Resources
Unzip the archive downloaded to get the codes.

sudo cp -r /boot/RaspberryPi/ ./ sudo chmod 777 -R RaspberryPi/ cd RaspberryPi


wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.64.tar.gz sudo tar zxvf bcm2835-1.64.tar.gz cd bcm2835-1.64 sudo ./configure sudo make sudo make check sudo make install
sudo apt-get install git sudo git clone git://git.drogon.net/wiringPi cd wiringPi sudo ./build
sudo apt-get install python-pip sudo pip install RPi.GPIO sudo pip install spidev sudo apt-get install python-imaging sudo apt-get install python-smbus sudo apt-get install python-serial
sudo raspi-config
The colors of wires may be different, please connect it according to the silk screen printing.
| Gesture Sensor | Raspberry Pi (Board) | Raspberry Pi(BCM2835) |
|---|---|---|
| VCC | 3.3V | 3.3V |
| GND | GND | GND |
| SDA | 3 | P2 |
| SCL | 5 | P3 |
cd ~/RaspberryPi/bcm2835/ cd Gesture sudo make sudo ./PAJ7620U2
cd ~/RaspberryPi/wiringPi cd Gesture sudo make sudo ./PAJ7620U2
cd ~/RaspberryPi/python cd Gesture sudo python PAJ7620U2.py


The STM32 examples is based on Waveshare XNUCLEO-F103RB whose chip is STM32F103RB, HAL libraries.
Connect the sensor to STM32 board according the table, then connect USB to UART interface of XNUCLEO board to host PC.
| Gesture Sensor | STM32 |
|---|---|
| VCC | 3.3V/5V |
| GND | GND |
| SDA | PB9 |
| SCL | PB8 |


The demo codes provide is based on the Arduino UNO
| Gesture Sensor | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| SDA | SDA |
| SCL | SCL |

