Introduction: Bounce Back ! Virtual Reality Game Using Arduino & Acclerometer
In this tutorial we will be creating a Virtual Reality game using Arduino and Acclerometer
Step 1: Introduction About the Project
There are tons of open source software's available these days which has brought loads of happiness for hobbyists like us, and Processing is one of them. With this JAVA based application we can build out own software (.exe format) and also an android application (.apk file). So we are going to use this software to build our game
The hardware part will consist an arduino which will fetch the input from an accelerometer to feed it serially to our computer / Laptop.
Step 2: Things Required
- Arduino (any version or model)
- Accelerometer [ADXL 345]
- Connecting wires
Step 3: 1.Install the Library
Download the Library of your acclerometer (as here we have used ADXL 345). LINK for ADXL 345 acclerometer Library:https://drive.google.com/drive/folders/1kETsOmXWhQKeDrV1LjTwNKhQxhToDnvO
Step 4: Connections
GND --> GND
VCC --> 3.3V
CS --> 3.3V
SDD -->GND
SDA -->A4
SCL -->A5
Step 5: Upload Arduino Code
Download the Arduino Code & Upload it & do note the USB Port you are using as we will be used later step.
Link For Arduino Code:https://drive.google.com/drive/folders/1KovjGLFkTS3tglFf5E1H6NJJCsJznM6x
Step 6: Install Processing IDE
Download & Install processing IDE from its official website.
https://processing.org/
Step 7: Editing the Codes
Download & Run The Game Code & make sure to edit the port you are using you can also check from arduino IDE. also you can edit the game as per your requirements and need.
Link for game code: https://drive.google.com/drive/folders/1JHT0W10qSam5UwRFADdTH17h33MHd14c
Step 8: Enjoy!!!
Run the game and Enjoy!! [ Bounce BACK ]
Subscribe To M-Human On Youtube For MORE SUCH TUTORIALS
https://www.youtube.com/channel/UCKH2OtAg810x56O6lVDAMKQ
Step 9: Video Tutorial

Participated in the
Games Contest
2 Comments
3 years ago
I'm not sure if Virtual Reality would be the best way to describe your project-- something more akin to Gesture-Controlled Arduino Game might be better? I do really like your implementation of a non-traditional hardware input, though! Have you thought about expanding this project for other applications?
Reply 3 years ago
Yes we have thought of using things like VR box and guns etc.