We decided to change our original concept of a wearable piece to a lamp. The idea is that the LED fades based on the wearer’s level of attention. We like the image of someone reading a book or doing work and if their attention wavered their light source would too. Acting as a manifestation of the wearer’s internal state, the light could provide critical feedback to the wearer (the loss of attention and thus progress) and perhaps motivate them to behave differently.
While getting an LED to change brightness based on the output of the mindflex seems relatively simple, it actually was quite challenging to figure out the code to make this successful. We tried a multitude of different strategies (such as changing from using an RGB strip to just a red LED) and employed the help of anyone that could point us in the right direction – Special shout out to Kyle Li and Julie Huynh !!! They both provided us with critical pieces of code that made our project work.
The LED responds to the different levels that the mindflex outputs.
The brightness changes based on the higher level of attention.
Here is a video of it working : https://www.youtube.com/watch?v=tau6435PHvg&feature=youtu.be
The final code we used :
//this is a mash up of code from the BrainSerialTest that we used in class, code from Kyle Li to break up the CSV, and code from Julie Huynh to assign the serial output to a PWN and thus connect it to the LED