Once you have your Feather working, you probably want to rock out with some Wireless connectivity. Luckily, Atmel & Arduino have written a great library for supporting the WINC1500
Install the Library
We will start by installing the official Arduino WiFi101 library.
We want the latest version so visit the Library Manager
Type in wifi101 and when the library comes up, click Install or Update to make sure its the most recent one!
If you're not familiar with installing Arduino libraries, please visit our tutorial: All About Arduino Libraries!
Restart the Arduino IDE.
Check Connections & Version
Before we start, its important to verify you have the right setup & firmware version.
Load up the WiFi101->CheckWifi101Firmware sketch
//Configure pins for Adafruit ATWINC1500 Feather WiFi.setPins(8,7,4,2);
Like so:
Upload to your Arduino and open up the Serial Console at 9600 baud:
You should see the firmware version. If your firmware hasn't PASSED, use the firmware updater to get the latest, its easy!
If you have version 19.3 or less, the firmware is too old
If you get not response, the firmware is either waaay to old, or something is amiss with your wiring!
Scanning WiFi
Now that you have the right firmware version, lets scan for network!
Run the WiFi101->ScanNetworks example to see a list of available visible networks
Connect & Read Webpage
OK finally you get to connect and read some data!
Open up the WiFi101->WiFiWebClient example
Edit the ssid and pass variables to contain your network and password
Add the following lines at the top of setup()
//Configure pins for Adafruit ATWINC1500 Feather
WiFi.setPins(8,7,4,2);
It will connect to the website in server and read the webpage manually:
Creating an Access Point + Webserver
This demo will let you create a new WiFi AP with the Feather M0 which you can connect to from any WiFi capable device. It will also create a Server so you can connect and turn on/off the onboard LED
Launch the WiFi101->AP_SimpleWebServer example
You can change the SSID & LED (LED_BUILTIN
is #13, the onboard feather LED)
Upload and open up the serial console to start the AP
Your computer will see the new AP and you should connect to it
Back over at the serial console, the Feather will have started up a server, it will print out the IP address and instructions
Go to the IP address and you will see the mini webpage, click on the links to turn on/off the LED
In the serial console you will see the data received from the webbrowser client
That's it! pretty easy, huh? There's other examples you can try such as server mode, UDP data transmission & SSL
Page last edited January 26, 2016
Text editor powered by tinymce.