To develop an immersive VR game that utilizes IMU for object tracking and movement control along with providing haptic feedback that adds more immersion to the experience.
(CS6650 Smart sensing for Internet of things Course project)
ESP32 code:
- In Arduino IDE, set the board type and port accordingly
- Download "WebsocketServer" library from Library manager in IDE
- Change the ssid and password in the code according to wifi being used
- Upload the code to the development board with the IMU connected properly based on the connection diagram given in the report
Unity Code:
- Given "WebsocketClient.cs" code is the main script that gets receives data and transforms the gameObject.
- But the entire codebase has to be downloaded for running the program
- Unity version used: 2021.3.8f1, XR package used: Oculus Integration, Build: Windows platform build
- To run the program, download the unity package provided, import the package in Unity, check for any dependency issue.
- In the WebsocketClient.cs file, IP address has to be changed based on the IP address the board is choosing
- Load one of the two given scenes(Maze_IMU, Fluid_IMU). Have the ESP32 on and ready, click play in Unity and BOOM there you go!!!!!
- For VR setup, machine should have Oculus app installed and Quest 2 has to be connected via Oculus link and played.