Skip to content

Instantly share code, notes, and snippets.

@summermk
Last active May 13, 2016 11:03
Show Gist options
  • Save summermk/a172626e921612d8e27f33da5d9e1db0 to your computer and use it in GitHub Desktop.
Save summermk/a172626e921612d8e27f33da5d9e1db0 to your computer and use it in GitHub Desktop.

SparkFun WiFi Shield Setup

Notes:

Setup WiFi Shield

Solder the headers on and connect to RedBoard. Follow instructions on the SparkFun page.

Get WiFi Shield Library

  1. Download the SparkFun ESP8266 AT Library
  2. After the download completes you should have a file SparkFun_ESP8266_AT_Arduino_Library-master.zip
  3. Open Arduino.
  4. Go to Sketch > Include Library > Add .ZIP Library
  5. Browse to the download location and select the file SparkFun_ESP8266_AT_Arduino_Library-master.zip
  6. Now you should be able to see SparkFun ESP8266 AT Library in the library options in Include Library menu.
  7. Also you can see examples under File > Examples > SparkFun ESP8266 AT Library

Run Shield Demo

  1. Open Shield Demo from File > Examples > SparkFun ESP8266 AT Library > ESP8266_Shield_Demo
  2. Make sure that correct board and port is selected
  3. Change the mySSID and myPSK field
    const char mySSID[] = "yourSSIDhere";
    const char myPSK[] = "yourPWDhere";
  4. Make sure the UART switch on the WiFi shield is set to SW
  5. Upload!
  6. Open Serial Monitor. It should display message "Press any key to begin."
  7. Try the demo and see if it works. It should!

Install ESP8266 Boards

SparkFun ESP8266 Boards

  1. Go to Preferences File > Preferences
  2. Enter the following URL in the Additional Boards Manager URL and click OK
    https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
  3. Open Boards Manager by going toTools > Boards > Boards Manager
  4. Start typing "esp" and SparkFun ESP8266 Boards by SparkFun Electronics should show up.
  5. Select and click Install

Arduino ESP8266

  1. Go to Preferences File > Preferences
  2. Add the following URL in the Additional Boards Manager URL and click OK
    http://arduino.esp8266.com/stable/package_esp8266com_index.json
  3. Open Boards Manager by going toTools > Boards > Boards Manager
  4. Start typing "esp" and esp8266 by ESP8266 Community should show up.
  5. Select and click Install or if it's already installed, click Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment