Head Motion Tracking System for VR
by Sam Kodo in Circuits > Wearables
692 Views, 4 Favorites, 0 Comments
Head Motion Tracking System for VR
![20190418_121313[1].jpg](/proxy/?url=https://content.instructables.com/F2S/VSBZ/K5YPKFMN/F2SVSBZK5YPKFMN.jpg&filename=20190418_121313[1].jpg)
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 :
https://www.amazon.com/Elecrow-Capacitive-interfac...
- An arduino Nano
https://www.amazon.com/ELEGOO-Arduino-ATmega328P-W...
-5mm of diameter for the lenses (Or could build for yourself using water bottles )
-A 9 axis gyroscope for head motion tracking
https://www.amazon.com/HiLetgo-Gyroscope-Accelerat...
-A 3D printer
-A Fan to cool down the screen card but is optional
Testing the Screen
![20190402_150228[1].jpg](/proxy/?url=https://content.instructables.com/FFZ/0RVQ/K5YPKGMO/FFZ0RVQK5YPKGMO.jpg&filename=20190402_150228[1].jpg)
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 .
Building Goggles Based on Your IPD
![20190402_135846[1].jpg](/proxy/?url=https://content.instructables.com/FGY/NSLO/K5YPKHLQ/FGYNSLOK5YPKHLQ.jpg&filename=20190402_135846[1].jpg)
![20190402_135901[1].jpg](/proxy/?url=https://content.instructables.com/FXA/LU1K/K5YPKJBC/FXALU1KK5YPKJBC.jpg&filename=20190402_135901[1].jpg)
![20190403_235822[1].jpg](/proxy/?url=https://content.instructables.com/FU8/XX76/K5YPKUOT/FU8XX76K5YPKUOT.jpg&filename=20190403_235822[1].jpg)
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
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 ...
https://github.com/SamKodo/Gyroscop_Master
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 :
![20190418_121239[1].jpg](/proxy/?url=https://content.instructables.com/FTC/3UDW/K5YPKU8S/FTC3UDWK5YPKU8S.jpg&filename=20190418_121239[1].jpg)
https://github.com/SamKodo/Unity_Code/tree/master