GPRS GSM GPS Shield (SIMCOME- SIM808)

来自MakerFabsWiki
跳转至: 导航搜索

Introduction[编辑]

This GPRS GSM GPS Shield based on the SIM808 GSM GPRS GPS all-in-one cellular phone module. You can add location-tracking, voice, text, SMS and data to your project. This shield fits right over your Arduino or Maduino, it is easy to use. This shield fits right over your Arduino or compatible. At the heart is a powerful GSM cellular module (we use the latest SIM808) with integrated GPS. The module is controlled by AT command via UART and supports 3.3V and 5V logical level.

Model: OAS808SIM
GPRS GSM GPS Shield (SIMCOME- SIM808).jpg

Features[编辑]

  • Quad-band 850/900/1800/1900MHz - connect onto any global GSM network with any 2G SIM (in the USA, T-Mobile is suggested)
  • Fully-integrated GPS
  • Make and receive voice calls using a headset or an external 32Ω speaker + electret microphone
  • Send and receive SMS message
  • AT command interface with "auto baud" detection
  • Send and receive GPRS data (TCP/IP, HTTP, etc.)
  • GPS L1 C/A code
  • 22 tracking /66 acquisition channels
  • Tracking: -165 dBm
  • Cold starts : -148 dBm
  • Time-To-First-Fix:Cold starts-32s (typ.),Hot starts-1s (typ.),Warm starts-5s (typ.)
  • Accuracy: approx 2.5 meters

Interface Function[编辑]

GPRS GSM GPS Shield (SIMCOME- SIM808) 2.JPG GPRS GSM GPS Shield (SIMCOME- SIM808) 3.JPG

Connectors:

  • Headset jack-This is a 'standard' TRRS 3.5mm phone headset jack with stereo earphone and mono microphone. Any 'iPhone' or 'Android' compatible (but not iPhone original) should work.
  • uFL GSM connector-This is the GSM Antenna connector, an antenna is required to use the SIM808 shield!
  • uFL GPS connector-This is the GPS Antenna connector, an antenna is required if you want to get GPS readings!
  • uFL BT connector- This is the Bluetooth Antenna connector, in this version, there no have the Bluetooth function.
  • SIM Connector:A 2G Mini SIM card is required to use the module. You can buy it in any cell phone shop. It must be a 2G GSM card.
  • VRTC Battery holder:Power supply for RTC.

LEDs

  • PWR –Power light
  • 1PPS –This is the 'pulse per second' output of the GPS
  • Status – Power on status. Lit when the Cell module is booted and running
  • NetLight – Network status. You can use this for checking the current state without sending an AT command
  • 64ms on, 800ms off - the module is running but hasn't made connection to the cellular network yet
  • 64ms on, 3 seconds off - the module has made contact with the cellular network and can send/receive voice and SMS
  • 64ms on, 300ms off - the GPRS data connection you requested is active

By watching the blinks you can get a visual feedback on whats going on. POWER_KEY

  • Power on or power off the SIM808.

Pins usage on Arduino

  • D0 - Used if you select hardware serial port to communicate with SIM808
  • D1 - Used if you select hardware serial port to communicate with SIM808
  • D7 - Used if you select software serial port to communicate with SIM808
  • D8 - Used if you select software serial port to communicate with SIM808
  • D9 - Used for software control the Power ON or Power OFF of the SIM808

Usage[编辑]

On its own, this shield can't do anything. It requires a microcontroller like an Arduino to drive it! You will also need some required accessories to make SIM808 shield work.
SIM Card! A 2G Mini SIM card is required to do anything on the cellular network. US AT&T no longer sells 2G SIMs and will shut off their 2G network, so for American customers we recommend any T-Mobile or reseller (TING, SIMPLE mobile, etc) that uses the T-Mobile network.

Assembly[编辑]

Attaching Antennas: GSM antenna is required to use the Cellular module. If you want to use GPS as well, a passive GPS antenna is also required.
GPRS GSM GPS Shield (SIMCOME- SIM808) ANT.jpg
SIM Card:
Insert a mini SIM card(GPS does work without a SIM)
GPRS GSM GPS Shield (SIMCOME- SIM808) SIM.jpg
GPRS GSM GPS Shield (SIMCOME- SIM808) SIM1.jpg
Connect the headset to the headset jack.(when you make a call you may need to use it)
GPRS GSM GPS Shield (SIMCOME- SIM808) HEA.jpg
Plug to Arduino or Maduino, connect the USB to the PC.
GPRS GSM GPS Shield (SIMCOME- SIM808) USB.jpg
Power on the SIM808 shield by the POWER_KEY ( sometime you can control it by the software control ( Arduino D9 PIN))

Load Demo[编辑]

Print the GPS(GNSS) data with serial port[编辑]

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

#include <SoftwareSerial.h>
#include<stdio.h>
#include<string.h>
#define DEBUG true

SoftwareSerial mySerial(7,8);         
void setup()
{
  Serial.begin(9600);
  mySerial.begin(9600); 
}

void loop()
{
   getgps();
   while(1)
   {
        sendData( "AT+CGNSINF",1000,DEBUG);   
        delay(1000);      
   }
}
void getgps(void)
{
   sendData( "AT+CGNSPWR=1",1000,DEBUG); 
   sendData( "AT+CGNSSEQ=RMC",1000,DEBUG); 
}

String sendData(String command, const int timeout, boolean debug)
{
    String response = "";    
    mySerial.println(command); 
    long int time = millis();   
    while( (time+timeout) > millis())
    {
      while(mySerial.available())
      {       
        char c = mySerial.read(); 
        response+=c;
      }  
    }    
    if(debug)
    {
      Serial.print(response);
    }    
    return response;
}

GPRS GSM GPS Shield (SIMCOME- SIM808) CODE.jpg

Once uploaded to your Arduino, open up the serial console at 9600 baud speed to show the test result:
GPRS GSM GPS Shield (SIMCOME- SIM808) RESULT.jpg

FAQ[编辑]

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

Resources[编辑]