ESP8266 Mind Monitor OSC Receiver Example by James Clutterbuck Mind-Monitor.com
This code sample is to demonstrate streaming live OSC brainwave data from Mind Monitor (connected to a Muse device), to an ESP8266 WiFi SoC, which can then interface with real world components, such as lighting, servos and in this example a color OLED display.
- Arduino core for ESP8266 (To enable programming the ESP8266 with the Arduino IDE)
- Arduino OSC library
- ESP8266 NodeMCU 1.0 (ESP-12E Module)
- SSD1331 Color OLED (96x64)
- SSD_13XX OLED Library by Sumotoy
| ESP | GND | 3V3 | D5 | D7 | D4 | D1 | D2 |
|---|---|---|---|---|---|---|---|
| OLED | GND | VCC | SCL | SDA | RES | DC | CS |
- Splashscreen showing Wifi SSID Name, IP Address and Port.
- Live OSC bundle message processing from Mind Monitor.
- Autodetection of Single or four channel absolute waves (/muse/elements/*_absolute).
- Horseshoe indicator showing headband fit (/muse/elements/horseshoe, /muse/elements/touching_forehead).
- Relative brainwaves (Delta, Theta, Alpha, Beta, Gamma) calculated from absolutes.
- Automatic timeout to splash screen when no data received.
