WiFi Shield

From MakerFabsWiki
Jump to: navigation, search

Introduction

ESP8266 is an ultra-low power UART-WiFi module. It has excellent dimensions and ULP technology compared to other similar modules. The module is special designed for mobile devices and Internet of Things (IoT). This WiFi Shield based on ESP-12F, which is the new version of the ESP-12 with the Wifi chip ESP8266. With this Shield, you can make you Arduino easy to connect to network and control your device anywhere. Just communication via UART interface and control by AT command.

Model: OAS8266WF
ESP8266 WIFI Shield.jpg

Features

  • support wireless 802.11 b/g/n standard
  • support the STA/AP/STA + AP three work modes
  • Built-in TCP/IP protocol stack, and support multiple TCP Client connection
  • support rich Socket the AT command
  • support UART/GPIO data communication interface
  • support Smart Link intelligent networking
  • support remote firmware update (OTA)

Interface Function

ESP8266 WIFI Shield 3.JPG ESP8266 WIFI Shield 4.JPG

Assembly

Attaching Antennas: GPS Aantenna is required to use the GPS module(Place it at outdoor, very important).
GPS Shield ANT.jpg
Plug to Arduino or Maduino, connect the USB to the PC.
GPS Shield USB.jpg

Load Demo

SIM800F TCP Test

Open up File: Get GPS.ino and upload to your Arduino wired up to the module.

//at 9600 bps 8-N-1
//Computer is connected to Hardware UART
//SoftSerial Shield is connected to the Software UART:D2&D3
 
#include <SoftwareSerial.h>
 
SoftwareSerial SoftSerial(2,3);
unsigned char buffer[64];                   // buffer array for data receive over serial port
int count=0;                                // counter for buffer array
void clearBufferArray();   
void setup()
{
    SoftSerial.begin(9600);                 // the SoftSerial baud rate
    Serial.begin(9600);                     // the Serial port of Arduino baud rate.
}
 
void loop()
{
    if (SoftSerial.available())                     // if date is coming from software serial port ==> data is coming from SoftSerial shield
    {
        while(SoftSerial.available())               // reading data into char array
        {
            buffer[count++]=SoftSerial.read();      // writing data into array
            if(count == 64)break;
        }
        Serial.write(buffer,count);                 // if no data transmission ends, write buffer to hardware serial port
        clearBufferArray();                         // call clearBufferArray function to clear the stored data from the array
        count = 0;                                  // set counter of while loop to zero
    }
    if (Serial.available())                 // if data is available on hardware serial port ==> data is coming from PC or notebook
    SoftSerial.write(Serial.read());        // write it to the SoftSerial shield
}
 
void clearBufferArray()                     // function to clear buffer array
{
    for (int i=0; i<count;i++)
    { buffer[i]=NULL;}                      // clear all index of array with command NULL
}

Once uploaded to your Arduino, open up the u-center_v8.22 software(Maybe you need to install before):
GPS Shield RESULT.jpg

FAQ

You can list you question here or contact with support@makerfabs.com for technology support.

Resources