In this tutorial We are going to see how to play subways surfers by using Gesture Sensor (APDS9960)
Arduino Nano 33 BLE sense Board have 8 onboard sensor including Gesture Sensor
Our Project has no circuit diagram because we are using onboard Gesture sensor
1) First Connect Arduino Ble Sense Board to Your PC or Laptop By using Type B
Charging Cable
2) Now Open Arduino IDE
3) Then Open Tools --> Manage Libaries --> Search (APDS9960) and Install the
Libary
4) After Installing libary Go to Files --> Examples --> Arduino APDS9960 -->
Gesture Sensor
5) Select the Board type and Port Number upload the program
6) UPLOAD the Program
7) After Uploading Now open the python script
8) Install The required package like pyserial and pynput
(pip install pyserial, pip install pynput) run this command in the command prompt in adminstrator mode
9) And Don't Forgot to enter the Arduino Port Number
10) Now run this program
11) For Playing game I used Bluestack
12) Change the Control settings For that refer the video
Comments
Please log in or sign up to comment.