Skip to content

Valve Index DIY eye and face tracking built with EyeTrackVR and Babble Face Tracking

Notifications You must be signed in to change notification settings

Kavex/Valve-Index-Face-Eye-Tracking-DIY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

Valve-Index-Face-Eye-Tracking-DIY

So you want Eye and Face Tracking? Do you have soldering skills? Update firmware on ESP32s?

You will need to know the basics or at least try to figure stuff out on your own. It's not easy, but with effort you can do it.

This is my face and tracking built with EyeTrackVR and Babble Face Tracking

Big Thanks to the following people and communities. Thanks Guys! Bookmark these pages.

https://github.com/Physics-Dude/Phys-Index-EyetrackVR-HW

https://github.com/RamesTheGeneric/OpenIris

https://github.com/EyeTrackVR/EyeTrackVR

https://github.com/SummerSigh/ProjectBabble and https://github.com/Project-Babble/ProjectBabble

Parts:

Here is a decent parts builder from EyeTrackVR to give you an idea: https://docs.eyetrackvr.dev/how_to_build/part_list

If you buy the IR LEDS yourself, then I would recommend doing your research!

Please read https://github.com/EyeTrackVR/EyeTrackVR?tab=readme-ov-file#about-ir-emitter-safety

Warning: it's getting harder to find OV2640 since it's discontinued but the ov5640 should work as of 2025-01-11 per to OpenIris's changelog. I only have OV2640 since that is what I ordered.

It's going to be really hard to get a 200mm length one, like impossible without some special order but i got you covered using extensions. (Make sure you get the 24Pin at 0.5MM Insert size)

Ribbon: https://www.aliexpress.us/item/3256802223169786.html

Pins: 24P

Connector Type: A-Forward Direction if you are using the Connector I suggested below

image

Insert Type: 0.5MM

Length: Get both size lengths, like ribbons are cheap and it's better to have spares and other sizes.

image

Connector: https://www.aliexpress.us/item/3256804096715690.html

(Choose "F5mm 850nm") 5mm 850nm IR Through Hole LEDS

Resistors for Face IR Emitters: https://www.aliexpress.us/item/3256806544238902.html

2x 160ohm 1/4w Resistors (If using 5V)
(Choose "160R")

2x 82ohm 1/4w Resistors (If using 3.3V)
(Choose "82R")

Get 3 Seeed Studio XIAO ESP32S3 with the Camera Module, You can use other types of ESP32s if you want but these are the smallest to us. Honestly worth the extra few bucks.

image

  • USB Hub: https://www.amazon.com/dp/B0BJZ753D9

    You can use any USB Hub, but we are using this gumstick to make an all-in-one case. You need a heat gun, soldering iron, and dremel to get the board out. If you don't want all that work, then just get some short USB cables and plug them into the ESP32s. We will be soldering stuff to the gumstick USB PCB board. 

  • 3D Printer: if you don't have one then go to your local library or maker space. All else fails use an online service to print parts or use lots of tape. idk your call. 

  • Tools: heat gun, soldering iron, solder, wire, computer, dremel, brains, safety glasses

Setting up the ESP32

  • Windows Drivers

Read https://wiki.seeedstudio.com/Seeeduino-XIAO/#software

It will have you download https://www.arduino.cc/en/software and install the Seeed Studio XIAO Board Module so Windows can see the COM Device

  • Flashing ESP32:

Download EyeTrackVR FirmwareFlashingTool: https://github.com/EyeTrackVR/FirmwareFlashingTool/releases

Open FirmwareFlashingTool and Select xiaosense3_usb

image

You will need to put your ESP32 into Boot Mode which requires holding the Boot Mode Button when plugging in the USB C but I find it easier to hit the reset button then hold the Boot Mode button

image

Select the correct COM port for the device under auto and hit install Openiris. Once it is done you can replug in the USB C on the ESP32. Select the COM Port again and you should be able to download logs. If you see logs then you are ready to test the camera on them. You can test the camera with the Babble App or EyeTrack App listed in the software section.

3D Printning

If you don't own a 3D Printer you can always use a service, read more here https://docs.eyetrackvr.dev/misc/jlc3dp

Soon

Wiring

Soon

Software and Setup

Babble App: https://github.com/Project-Babble/ProjectBabble/releases

EyeTrack App: https://github.com/EyeTrackVR/EyeTrackVR/releases

VRCFaceTracking: https://docs.vrcft.io/