This week I find out how to do spacial sound in Unity 3D. Basically I am simuilating a virtual cube in Unity 3D by sensing the movement from the physical cube.
for combining unity 3D with arduino
For all of the following video please put on the earphone.
This is a test video for sensor.
This is a test for spacial sound.
This is a test I made in Unity to test with buttons. (just for convenience to test)
For the circuit part
I came across a major problem this week that is the I2C communication of multiple sensors. I got my 6 sensors of VL6180X. I am so excited and soldering them and connect them to the same I2C port and then can’t find a way to tell which one is which one. Then I google and someone mention to use a I2C bus.Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout. Then I ordered this product from adafruit again and it would arrive at thusday night. I hope that Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout would work for me.
I also test the sensor VL6180X and find that the view of the sensor is narrow.Inspired by the PIR sensor adding lens to it to imporve its ability, I tried to improve its ability of its view by adding lens to it but failed. I add the lens of PIR sensor and tried to add self bent trasnparent PLE sheet to it but does not work.
That means I need to add more sensors. I decide to sense the position only in 2 dimensions. I also decide to make the cube smaller. For each axis, I use 3 sensors. I hope this would work. I am waiting for TCA9548A to test all these thing. Right now I marked the ideal position for placing these sensors based on my test to a single sensor.
I feel like I am behind my schedule! Hope I can finish this assignment!