Introduction: Head Motion Tracking System for VR
My name is Sam KODO , In this tuto ,I will teach you step by step how to use Arduino IMU sensors to build head tracking system for VR .
In this project you will need :
- An LCD Display HDMI :
- An arduino Nano
-5mm of diameter for the lenses (Or could build for yourself using water bottles )
-A 9 axis gyroscope for head motion tracking
-A 3D printer
-A Fan to cool down the screen card but is optional
Step 1: Testing the Screen
You need to make sure that your screen is supported by your computer card by connecting the power supply and the HDMI to your computer .
Right click to your desktop > displays settings > display , you should see your second screen somewhere ...
then click on that , your LCD screen should display your computer screen .
If everythings works well , then you are ready to move on the second step .
Step 2: Building Goggles Based on Your IPD
At this point you need to be accurate as you can , the IPD will enable your headset to give you a better immersive experience .
You can learn how to measure that by following this link :
Once you have the correct distances values for your eyes then you can 3D print the goggles and another surface to hold the graphics card for the screen .
The dimension will depend on the screen size of your LCD
Step 3: Connecting Your MPU6050 to Your Arduino Nano
After connecting successfully the MPU6050 upload this sketch to your Arduino to test the Gyroscop .
By opening on the serial Monitor , you should see values displaying while moving the Mpu650 Gyro in different axes and angles ...
Step 4: Testing the MPU6050 With Unity 3D
Before uploading the Sketch to your Arduino nano don t forget to install libraries to your Arduino folder , you can find the library from the GitHub link :