As you can see, a virtual reality world is gradually forming; Google has pioneered the Smartphone-based virtual reality equipment Cardboard, small also experienced, I feel pretty good.
There is no doubt that virtual reality is entering our lives, live virtual reality is gradually on the rise. But overall, live virtual reality is very small, with few resources and due to bandwidth constraints, many live virtual reality there are restrictions on the number of access equipment. In that case, let us live to DIY a virtual reality system! (Note: this item from Instructables. )
The first step: item and component configuration
To realize this project, you need the following hardware:
A support of Cardboard cell phone
Google Cardboard (because Google discloses a design, there are many different manufacturers of compatible versions)
Two computers
Two different network cameras (must be driven differently, otherwise the Windows system cannot be identified)
Three standard servo
Camera mount and related 3D printed components (click here to download the file)
Small bread plates
12 jumpers
USB a to USB b cable
AA battery box
4 AA batteries
Arduino UNO
Screws several
In addition, you will also need these software:
Processing 2.0 (optional, if you don't want to change the source code, without)
TrinusVR
Arduino
Skype
VRTD
Step two: motor unit Assembly
First 3D print the necessary structures.
Different servos with a different structure, seen here.
The third step: electronic components
Wiring diagram above, Arduino to control the three servos, servo uses 4 AA batteries, for Arduino cannot at the same time as three servo functions. The three servos for the final device offers 3 degrees of freedom. Actual connection shown below:
Fourth step: upload code Starbucks iPhone 5 Case Starbucks iPhone 5 Case
This project is based on the standard Firmata agreement, which allows real-time communication based on Arduino interaction easier, and can also be transferred to a PC for data processing. Setting standard Firmata Protocol steps are as follows:
Use the USB a to USB b cable, Arduino UNO open the Arduino IDE and connection to PC;
Click on File->Examples->Firmata->StandardFirmata, the necessary code templates loading the IDE;
Click on the Tools->Board->Arduino UNO, determining Development Board;
Tools->Serial Port-> (serial interface), set here on the Arduino connected interfaces;
Click the arrow symbol to standard upload the Firmata agreement Arduino, if there are no errors, the upload is successful.
You can use the test standard Firmata Firmata Test application protocol whether the installation was successful. Where you can see the interface definition, here we use pin 8, 9 and 10, the three pin type changed to "Servo".
Fifth step: setting up virtual reality applications
Now mostly head-mounted virtual reality applications, compatible version is Cardboard that we use here. And our data processing is performed on a computer, we need to TrinusVR software provides video streaming for Cardboard. TrinusVR to download and install, please click here.
The sixth step: VRTD software
This project will be used by custom software written in Processing 2.0 VRTD (Virtual Reality Teleconferencing Device) to control remote virtual reality devices, the software is divided into two parts VRTD_sender and VRTD_receiver.
VRTD_sender in use on the computer, the program will have a data track head movements, and upload the data to the specific IP address. The IP address belongs to, a particular computer, the computer is running on VRTD_receiver, can be accepted by the computer connected to it on the left and right cameras produced by the video data, and control camera according to the VRTD_sender send the following rudder movement.
So how do users and see live video images of it? Used here is a very clever way: directly through the Skype/QQ video software transfer video data that is shared. Specific configuration steps are as follows:
Two Windows installed computer system, named a and b, respectively;
To connect a computer a Cardboard, and run VRTD_sender;
Computer b to connect to virtual reality devices, and run VRTD_receiver;
Set in the VRTD_receiver two webcams and Arduino interface;
Run Skype software on two computers, and open the screen sharing;
In the VRTD_sender, enter the IP address of computer b;
Wear a virtual reality device, the device controlling the mouse cursor, and take this control on the Arduino is connected to computer b connected servos.
Note: only one computer to complete this project, both VRTD_receiver and VRTD_sender, you can enter local at the enter IP address 127.0.0.1.
Seventh step: completion
Demo videos are as follows:
Here the project is completed, the project's author John Choi has associated CAD and documentation open source, it is awesome!
Want more brain creative opening to the hole? Get attention hard to create state public micro-letter (leiphone_bang), every day there are new.
192 votes
Google Cardboard glasses VR-II
Millions of users have tried the VR glasses Cardboard tonight ushered in the next generation of products, it is able to support a 6-inch screen on the exterior models and adaptation iOS, overall was a simple cardboard box, just replaced the previous generation of magnetic button.
View details of the voting >>
No comments:
Post a Comment