Initially i hadn't added the readme.txt as i had kept the project for my self but as i have shared in my answer https://www.quora.com/What-is-the-coolest-thing-you-have-ever-created-alone-as-a-programmer/answer/Nikhil-Wayal?srid=FDgp and all of sudden there were number of queries from people hence i have decided to add the instructions to guide the quora community in creating the project.
step 1:- solder the ir as per the image uploaded and make the connection for the ir sensor to arduino uno analog pin.
step 2:- by using the arduino IDE,Connect the arduino uno model to commport of pc using the arduino uno connector and upload the code(burn) to arduino
step 3:-for creating the goggle i had made use of normal ir sensor but it is not safe,in case for usage of prolong time period use, try to use any ir led that operated above 960nm.
step 4:-create a java project in eclipse with java class as RobotExp and copy paste the code from JavaAppliactionCode folder.
step 5:-connect the arduino uno to computer and run the java code in eclipse ide hope this helps
credits-thanks to kaushal kishor and shashank deodhar for helping me in creation of this device.