Sunday, December 20, 2015

some headway

during the last few days, i have been working pretty diligently on writing code to in order to make the interactive response to the EEG data more organic. i have been able to get data response (light) mapped to a specific data (waveforms from alpha, beta, etc.). for about the past four days. my observations are that this mapping results in a jumpy output; the lighting is responsive to the latest reading and immediately goes to the next number. more often than not any two adjacent readings have a decent span between the numbers and then lighting rapidly dims or brightens.


my work over these days has been to learn how to engage multitasking on the Arduino stepping out into interrupts and  timer functions in order to measure the data over a longer period or grab two data points and then create a smoothing effect over the light changes. or in other words to take value currentReading - pastReading and divide that difference into 8 steps of change (fading in or out).

No comments:

Post a Comment