Вы находитесь на странице: 1из 2

Talk:Wifi Shield (Fi250)

From Wiki

How to use Wifi Shield(Fi250) on Arduino UNO


1. Reset the module as factory default. Press the function three times at fast speed;
2. Upload sketch Blink to Wifi Shield(Fi250);
3. Connect WIFI_TX to D1 and WIFI_RX to D0 with jumper hats on shield;
4. Open Serial Port Tool, then send AT+USET=baud rate,N,8,1,N(Baud rate should be lower than 115200).
For example, AT+USET=38400,N,8,1,N, and you will see OK returned.

5. Change the jumper hats to connect WIFI_TX with D6 and WIFI_RX with D7.
6. Upload the code below.
7. Open serial monitor, and you will see it successfully joins wifi with the Red LED lit.
#include <Arduino.h>
#include <SoftwareSerial.h>
#include "WizFi250.h"
#define SSID
#define KEY
#define AUTH
#define spi_CS

"Your-SSID"
"Password"
"WPA2"
8

SoftwareSerial uart(6, 7);


WizFi250 wizfi250(&uart);
void setup() { TOP
Serial.begin(38400); //change to the right baud rate

http://www.seeedstudio.com/wiki/Talk:Wifi_Shield_(Fi250)

uart.begin(38400); //change to the right baud rate


pinMode(spi_CS,OUTPUT);
digitalWrite(spi_CS,HIGH);
Serial.println("--------- WIZFI250 TEST --------");
// wait for initilization of Wizfi250
// wizfi250.reset();
delay(1000);
Serial.println("Join " SSID );
delay(10);
if (wizfi250.join(SSID, KEY, AUTH)) {
Serial.println("Successfully join " SSID);
} else {
Serial.println("Failed join " SSID);
}
wizfi250.clear();
Serial.println("*************send command to get Wizfi250 status******************");
wizfi250.sendCommand("AT+WSTAT\r");
//delay(10);
char c;
while (wizfi250.receive((uint8_t *)&c, 1, 100) > 0) {
Serial.print((char)c);
}
}
void loop() {
while (wizfi250.available()) {
Serial.write(wizfi250.read());
}
while (Serial.available()) {
wizfi250.write(Serial.read());
}
}

Retrieved from "http://www.seeedstudio.com/wiki/index.php?title=Talk:Wifi_Shield_(Fi250)&oldid=97611"


This page was last modified on 3 July 2014, at 05:17.
This page has been accessed 1,179 times.

TOP

http://www.seeedstudio.com/wiki/Talk:Wifi_Shield_(Fi250)

Вам также может понравиться