Head Motion Tracking System for VR

by Sam Kodo in Circuits > Wearables

605 Views, 3 Favorites, 0 Comments

Head Motion Tracking System for VR

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

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
20190402_135901[1].jpg
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 :

http://doc-ok.org/?p=898

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

Arduino-and-MPU6050-DMP-Interrupt-pin-circuit.png

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

interfacing-gyroscope-to-arduino-output.png

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 :

https://github.com/ElectronicCats/mpu6050

20190418_121239[1].jpg

https://github.com/SamKodo/Unity_Code/tree/master