###Week12: Interface and Application Programming
Final project overview. A wireless communication between the shoe and the web-browser is needed, so that people can dance freely. For the communication, I choose websocket as a bridge.
I followed along an ESP-websocket tutorial to build my first ever websocket. The light switch can be controlled by the web, wirelessly.
### BNO-055 (Orientation, Accelerometer Sensor)
As I need the position and orientation data from the shoe, Nathan suggested me to go to Accelerometer route. Sadly, I have no luck using this previous sensor in the first round.
At the beginning, I used my own designed ESP32 board, and the arduino IDE console kept telling I2C is not detected....
### New BNO-055
Nathan helped me debugging for a while, we then use a off-the-shelf ESP32 feather board and a new BNO055 sensor, and it worked!
### Serial input - p5.js
Visualizing the pressure sensor is part of my final project,whether the output should be GUI or TUI-based is still debating. For this week,I focused on making my ESP32 talk to p5.js. So, I came to understand that there is a thing called websocket
that enables machines to talk to each other synchronized through a server. I struggled a lot to find the right tutorial for connecting serial input from your device to the web. Starting from Daniel Schiffman's coding train, Jose Luis's Parametric Camp, they all talk about the concept around websocket and firebase, which I need to understand but still missing something for my final project. Luckily enough,
I found a very very very useful tutorial from NYU, by Tom Igoe.
In the website, it includes everything you need to know about the hardware and software part.
The tutorial that is very easy to follow along is: serial input-to-p5.js
I eventually managed to read in data in p5 from my pressure sensor, and then I manipulated that data to some simple geometry visualization for now.
The wi-fi networking part is something I haven't touched , but will continue trying out.
### Multiple Serial Inputs -> Websocket -> P5.js
TO BE CONTINUED....