WiFi Shield
Description¶
This Wifi Shield utilizes a RN171 wifi module to provide your Arduino/Crowduino with serial Ethernet's function and adds storage to your arduino project . It features an independent antenna which can cover a wider range and transmit stronger signals. With supports for common TCP, UDP and FTP communication protocols, this Wifi Shield can meet needs of most wireless network projects, like smart home networks, robot controls or personal weather stations, etc. We prepared an easy and convenient command set for this shield so that you can use neat and concise code to run the function. If you use the wifi function, it takes two pins to hook your device up to 802.11b/g wireless networks. If you use the storage, it takes SPI and a select pin to access to the SD.
Model:ACS17101S
Features¶
- Arduino, Crowduino, Seeeduino, Arduino Mega and Crowduino Mega compatible
- Host Data Rate up to 1 Mbps for UART, 2 Mbps over SPI slave
- UART serial port of RN171 on the Shield can be connected to Arduino by jumpers
- SPI pin of RN171 is just breakout
- Support SD card 2GB and 4GB.
- Secure WiFi authentication WEP-128, WPA-PSK (TKIP), WPA2-PSK (AES)
- Built-in networking applications: DHCP client, DNS client, ARP, ICMP ping, FTP, TELNET, HTTP, UDP, TC
- Dimensions(mm):68.6(L)x55.0(W)x23.5(H)
Specification¶
Items | Min | Typical | Max | Unit |
Voltage | 3.3 | 5 | 5.5 | v |
Current | 25 | 80 | 500 | mA |
Transmit power | 0-10 | dBm | ||
Frequency | 2402~2480 | MHz | ||
Network rate | 1-11 Mbps for 802.11b/6-54Mbps for 802.11g | |||
Supported Card Type | SD card(<=2G); Micro SD card(<=2G); |
Interface¶
Usage¶
- hardware Installation
Assemble these parts together like the picture below. and mount the shield onto your Arduino/Crowduino.
- Software Programming
First you have to make sure that Arduino1.0 has already been installed on your computer.
Download the wifishield library here Wifi Shield.zip and unzip it into the libraries file of Arduino via this path: ..\arduino-1.0\libraries
Open a new sketch in Arduino-1.0, then copy the following code to your sketch.
#include "Wifly.h"
#include <SoftwareSerial.h>
WiflyClass Wifly(2,3);
void setup()
{
Serial.begin(9600);//use the hardware serial to communicate with the PC
Wifly.init();//Initialize the wifishield
Wifly.setConfig("SSID","PASSWORD");//here to set the ssid and password of the Router
Wifly.join("SSID");
Wifly.checkAssociated();
while(!Wifly.connect("192.168.1.164","90"));//connect the remote service
Wifly.writeToSocket("Connected!");
}
void loop()
{
if(Wifly.canReadFromSocket())
{
Serial.print(Wifly.readFromSocket());
}
if(Serial.available())
{
Wifly.print((char)Serial.read());
}
}
You need to do some modifications on this sketch according to your specific configuration.
Debug through computer¶
Resource¶
Design files wifiShield library RN171 Datasheet If some function isn't included in the library, This User Manul may help.