MENU

Part II : Make the camera wireless with ESP8266

  Let’s sum up what we have done so far : we ordered a pair of color tracking cameras we modified them into Infrared tracking cameras we updated their firmware to track Infrared and tested them we built a small case to give them a nice look There is one last modification we have to bring to the cameras, and that modification is a game changer : we are going to make them wireless ! Of course we won’t send the video, but the coordinates of the points the camera is tracking. In this article we are going to connect an ESP8266 Wifi shield to the CmuCam to send coordinates over Wifi. Here is what we are going to do, step by step. All you need to know for this part is how to program an Arduino (I have seen 8 years old doing it so…I’ll give you a link just in case).   The basics Connect NodeMCU to CmuCam Program the ESP8266 The basics Here we’ll go through all you need to know to make it out of this tutorial alive. First if you don’t know what is Arduino, please read about it here : Arduino. We are not going […]
Read More ›

Part II : Build the Gateway and get your position ! (old)

  You have proudly assembled at least two wireless cameras and you finally want to test them. Good ! Because at the end of this post, your cameras will be talking with the Gateway, and we will get 3D coordinates from the two sets of 2D coordinates. The big step will be building the gateway, which is a Raspberry Pi 2, and installing all the software. Let’s have a look at the steps we are going to go through : 1. Prepare your Raspberry Pi 2. Make it talk with the cameras 3. Behind the curtains : calculating the 3D position by image resectionning 4. Send data back to the user with Websockets As you can see, we still have a lot on our plates. But once you have understood the concept, it gets easier. Prepare your Raspberry Pi We are going to use a Raspberry Pi 2 as a Gateway to receive 2D positions from the cameras, compute them into 3D positions with OpenCV and send them back to the user via WebSockets. Get a Raspberry Pi 2 and all the stuff necessary to go with (5V supply, Wifi dongle, SD card) and a Nrf24L01+ with long range antenna. Install Raspbian on your […]
Read More ›

Part III : Set Up Unity for a VR Experience

First, this isn’t going to be a long post showing you how to install and use Unity. In a few words, Unity is one of the most famous Game Engine. It allows you to develop games for PC, Android, iP Wii and almost every other platform. Unity is the most advanced Game Engine for VR (as opposed to Unreal Engine for example). Here I am just going to share some links and info to help you jumpstart your development of VR applications in unity.   The most important step is to integrate OpenCV in Unity. Then we need to communicate with the cameras using websockets. Finally we have to create a calibration sequence using OpenCV and add the tracking function. All of this had been done in the previous version using a Gateway, but I now have to translate all the code from python to C# and clean it of course. Get Unity Simply download and install the latest Unity Free version on your PC/Mac Communicate with the cameras (Websocket) The cameras communicates on your Wifi network using Websockets (each camera is a websocket server). To receive their 2D datas, your PC or phone has to be turned into a Websocket client. So we […]
Read More ›

VR Tracker: DIY position tracking system – Introduction

Oculus Rift, VR One, Samsung Gear, Sony Playstation VR… All those Virtual Reality are great, but they are missing something ! They do not have a position tracking system ! This means you can look up down right left, but can’t stand up and move around in your room. Too bad because the best experiences happens when you can actually move around by yourself in your virtual environment. How do I know ? Well I have been working with many of those headsets as a consultant for an augmented reality company, and I have developed a 3D position tracking system compatible with all those devices ! And let me tell you, I have tested this tracking system with Samsung Gears, and the result was AWESOME !!! I was able to move around in a 5 meters by 8 meters room and therefore in my virtual environment. What is so great about position tracking ? The range of applications is much wider ! You can for example create an experience in a museum where users could visit a pyramid using VR headsets in an Egyptian exposition. Or visit an appartement or a building even before it has been built ! You could also create […]
Read More ›
Skip to toolbar