Difference between revisions of "Maduino GPRS A6"

From MakerFabsWiki
Jump to: navigation, search
(Interface Function)
(Interface Function)
Line 37: Line 37:
  
 
Pins usage on Arduino
 
Pins usage on Arduino
*D0 - Used if you select hardware serial port to communicate with SIM808
+
*D0 – RX from A6 (Hardware Serial Communication Selected)
*D1 - Used if you select hardware serial port to communicate with SIM808
+
*D1 – TX to A6 (Hardware Serial Communication Selected)
*D7 - Used if you select software serial port to communicate with SIM808
+
*D2 - Unused
*D8 - Used if you select software serial port to communicate with SIM808
+
*D3 - Unused
*D9 - Used for software control the Power ON or Power OFF of the SIM808
+
*D4 - SD Card CS PIN
 +
*D5 - Low-Power Mode Control of A6 (Low active)
 +
*D6 - Power OFF Control of A6 (High active)
 +
*D7 - RX From A6 (Software Serial Communication Selected)
 +
*D8 - TX to A6 (Software Serial Communication Selected)
 +
*D9 - Power ON Control of A6 (High active)
 +
*D10 - Unused
 +
*D11 - Unused
 +
*D12 - Unused
 +
*D13 - Unused
 +
*D14(A0) - Unused
 +
*D15(A1) - Unused
 +
*D16(A2) - Unused
 +
*D17(A3) - Unused
 +
*D18(A4) - Unused
 +
*D19(A5) – Unused
 +
 
 
===Usage===
 
===Usage===
 +
==GSM Connectivity==
 
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.<br>
 
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.<br>
 
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.
 
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.

Revision as of 06:52, 29 November 2017

Introduction

Maduino GPRS A6 is a one-stop solution for IOT (Internet of Things) projects, it integrate a micro Controller Atmega 328, GRRS/GSM module A6, on-board power management and storage, to make the Maduino GPRS A6 ready for real project for IOT projects such as smart-home, outdoor monitoring, shared bicycle, etc. The GRPS/GSM module A6 support quad-band 850/900/1800/1900MHz, that covers any GSM network, after inserting a SIM card, then you will able to use the SMS/GPRS service of Cellular connectivity.
The Maduino GPRS A6 based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also detailed guide for users to learn how to create the first IOT project with Maduino GPRS A6 board, with which the starters can learn the hardware and programming skill quickly.

Model: OAC000MA6
Maduino GPRS A6.jpg

Features

  • Powered by lithium battery 3.4-4.2V or USB
  • ATmega328: 8MHz, 32KB flash, 2KB SRAM
  • Integrated Power Control System
  • Quad-band: 850/900/1800/1900Mz
  • Interface: I2C/SPI/UART/18*GPIO
  • Arduino Compatible
  • Working Temperature: -20 – 85℃
  • Default baud rate: 115200
  • Size: 40*55mm

Interface Function

Maduino GPRS A6 1.JPG
①PWR: Power Indicator
②CHG: Charge Status Indicator
③VBAT: Lipo Battery Connector
④CHG: 5V power Input Connector, connect to the solar panel to charge the battery.
⑤Micro USB: 5V Power Input, USB to serial Communication
⑥RESET: Reset Button for ATmega 328
⑦Serial Port Select:
D0&D1: Hardware serial port;
D7&D8: Software serial port;
⑧A6 Serial Port for Firmware Updates
⑨GSM: Antenna IPX Connector

Maduino GPRS A6 2.JPG

①Micro SIM Card Holder
②Micro SD Card Holder

Pins usage on Arduino

  • D0 – RX from A6 (Hardware Serial Communication Selected)
  • D1 – TX to A6 (Hardware Serial Communication Selected)
  • D2 - Unused
  • D3 - Unused
  • D4 - SD Card CS PIN
  • D5 - Low-Power Mode Control of A6 (Low active)
  • D6 - Power OFF Control of A6 (High active)
  • D7 - RX From A6 (Software Serial Communication Selected)
  • D8 - TX to A6 (Software Serial Communication Selected)
  • D9 - Power ON Control of A6 (High active)
  • D10 - Unused
  • D11 - Unused
  • D12 - Unused
  • D13 - Unused
  • D14(A0) - Unused
  • D15(A1) - Unused
  • D16(A2) - Unused
  • D17(A3) - Unused
  • D18(A4) - Unused
  • D19(A5) – Unused

Usage

GSM Connectivity

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