New hardware Installation and software programming of WIifi shield

Wifi shield become quite important and widely used in many projects. Here allow me to share some useful information about wifi shield for the arduino starters.

  1. Hardware Installation
    Assemble these parts together like the picture below. and mount the shield onto your Arduino/Crowduino.

  2. 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. See more in WiFi Shield - Elecrow