Yup. Wifi is coming to the OpenBCI.
Use SSDP or mDNS
- Over the air uploading
Use the ESP8266HuzzahSSDP.ino
in examples!
You need to clone the ESP8266 library from github.
For the firmware that runs on ESP8266 see OpenBCI_Wifi on PushTheWorld’s github repository.
For the software that runs on OpenBCI, we will start from scratch with an ino file that just does SPI.
The ESP8266 runs arduino as well so there are several installs that need to happen in order to make that work; repo: ESP8266 Arduino and follow the instructions for Using Git Version to install properly. We have to do this because we need the “SPISlave” feature that has not been published in their latest release.
The library we are interested in using is the SPISlave
.
The pin mappings for the ESP8266 are:
Pin Name | GPIO# | HSPI Function |
---|---|---|
MTDI | GPIO12 | MISO (DIN) |
MTCK | GPIO13 | MOSI (DOUT) |
MTMS | GPIO14 | CLOCK |
MTDO | GPIO15 | CS / SS |