Minimalize Circuits


DIY VR headsets by Hiroto Ikeuchi

I found some impressive creations combining cyberpunk, cosplay and DIY culture by Hiroto Ikeuchi. She handcrafted futuristic objects and accessories into complex and beautiful high-tech looking objects by using recycles electronic gadgets, cameras and smartphones that inspired by science fiction and manga. (More projects on Hiroto’s Instagram) These two above examples are more related to what I am aiming to make for my final outcome, to hack the current VR headset with adding sensors, microcontroller and LEDs.

Moodboard / Artist style – collections from Pinterest

I created a mood board of the collections I found on Pinterest and sketched out my initial design with the circuit.

Circuit Design 1.0

I am aiming to use two coin cell batteries to power my particle photon because they are small and lightweight. However, common coin cell battery is 3v, if I double them up the final power will be 6v which will burn my particle photon board (if the power connects via VIN, the current should be regulated to 3.6VDC and 5.5VDC). So I did some research and found a secure way to convert 6v to 5v through voltage divider that mentioned in kobakant website. After some calculation, I decide to use  100 ohm and 500 ohm resistors to get a 5v power supply.

image source:
my converting math

The next step is to get the basic input and outputs working between particle photon and unity.

Analog input from particle photon to unity 3d

I followed this online courses to read the sensors input from particle photon, so unity can read up to five analog inputs (the sixth one is current time) by using these scripts. The example code from particle ide are random numbers but those are can be easily replaced with analog sensors. By using this method can help to solve the problem of cables because values are sent through the internet instead of serial port.

publish random values from particle photon

Then I hooked up my sandwich pressure sensor by using press sensitive fabric with particle photon at pin A1 and map the value into percentage. So my particle photon will publish the event with values every second to the cloud. From unity side, the readstream script is using event to read json via particle API. It’s important to call the right tag which is the same event name that publishing from particle, it’s case-sensitive and there should be NO space between words. After I got the right value inputs from photon in unity, I then followed the tutorial to apply it to the intensity of the firecamp.

hook up pressure sensor
publish value in particle IDE
reading value in unity

Digital write from unity 3d to particle photon

My thesis is trying to get the two-way communications between unity and particle photon, so it’s also important to be able to control Digital Write in particle photon from unity, which is the other way round. However, there are very little resources online about this part. It should be the similar method to send information to the device to turn the LED on and off. Unity should send a POST request with the info in the form over to another URL that would store the data. I am currently stucked but I did eventually find some useful documents and tutorial:

Particle docs-control LEDs over the net

Unity docs-API Request

[Tutorial] API request through unity via www class

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s