Maduino Zero SIM808 GPS Tracker v3.5

From MakerFabsWiki
Revision as of 10:15, 30 October 2019 by Charlin (talk | contribs) (Created page with "== Introduction == Maduino Zero SIM808 GPS Tracker v3.5 is an IoT (Internet of things) Solution based on the 32-bit Atmel’s SAMD21 MCU and GPRS/GSM GPS module SIM808. It int...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Maduino Zero SIM808 GPS Tracker v3.5 is an IoT (Internet of things) Solution based on the 32-bit Atmel’s SAMD21 MCU and GPRS/GSM GPS module SIM808. It integrates a micro Controller ATSAMD21G18, GRRS/GSM module SIM808, which is the upgrade version of SIM900, power management and storage, to make the SIM808 GPS Tracker ready for a real project for IoT projects such as smart-home, outdoor monitoring, shared bicycle, etc. The Maduino Zero SIM808 GPS Tracker based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IoT project with this board, with which the starters can learn the hardware and programming skill quickly.

Model: OAC808GPS
Maduino Zero SIM808 01.png

Features

☉ATMEL SAMD21G18A: 32-bit ARM® Cortex®-M0 up to 48MHz, 256KB flash, 32KB SRAM, LQFP48 ☉Powered by lithium battery(3.4-4.2V) or AC-DC Adapter(5V/2A or 12V/2A are recommend) ☉When power outage the battery will continue work ☉GSM Quad-band: 850/900/1800/1900Mz ☉GPS Location ☉Bluetooth 3.0 + EDR(Enhanced Data Rate), up to 2.1Mbps ☉Interface: I2C/SPI/UART/ADC/DAC/I2S/38*GPIO ☉Arduino Compatible: You can play it with Arduino IDE ☉More cost-effective and high quality than Arduino Zero ☉Working Temperature: -20 ~ +85℃ ☉Default baud rate: 115200bps ☉Size: 40*55mm


Interface Function

700px
①PWR: Power indicate
②CHG: Charge indicate
③GSM: GSM Antenna IPX Interface
④VBAT: 3.7V Lipo battery connector
⑤J1: 5V2A or 12V/2A power input, it can charge the lipo battery
⑥Micro USB: USB to serial communication, it not supply power
⑦STA: SIM808 status indicate
⑧NET: SIM808 Network indicate
⑨GPS: GPS Antenna IPX Interface
⑩RESET: Reset button for ATSAMD21G18

700px

①Micro SIM Card Holder
②Micro SD Card Holder

Pins usage on Arduino

  • D0 – RXD from SIM808
  • D1 – TXD to SIM808
  • D2 - Unused
  • D3 - Unused
  • D4 - SD Card CS PIN(active LOW)
  • D5 - Unused
  • D6 - Unused
  • D7 - Unused
  • D8 - Unused
  • D9 - Power ON/OFF Control of SIM808 (D9 output 1s HIGH then output LOW)
  • 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

Get GPS INFO

SIM808 is a GPRS/GSM+ GPS Quad-band module, with this board, we can use it as a GPS tracker, data acquisition, remote control and a lot of IOT project or smart home project.

1.(Optional)Insert a Micro SIM card(GPS NOT need the SIM card, if you want to use the AGPS, the SIM Card will need.)
The Maduino Zero SIM808 board uses the micro SIM card that is widely used in Android phone, install the Micro SIM card to the holder as below picture.
Maduino Zero SIM808 03.png
Note that some fee maybe needed for each SMS depends on your local GSM Operator, make sure that the SIM Card is active and enough money left for this application.
2.Connect the GSM, GPS Antenna and the 3.7V battery
Note:The SIM808 Module can not work without the battery by current hardware design. Maduino Zero SIM808 04.PNG
3.Programming and Download
Select the right port and Arduino board: Arduino Zero(Native USB Port) to upload the firmware to Maduino Zero SIM808 GPS board
Maduino Zero SIM808 05.PNG
The Codes for this application is very simple, define the SIM808 Power control pins:

//define the power control pin of SIM808:
int PWR_KEY=9;    //power on/off

GPS power control

sendData("AT+CGNSPWR=1",1000,DEBUG);

Define the last NMEA sentence that parsed

sendData("AT+CGNSSEQ=\"RMC\"",1000,DEBUG);

GNSS navigation information parsed from NMEA sentences

sendData("AT+CGNSINF", 1000, DEBUG);

print to serial every 1 second

sendData("AT+CGNSURC=1", 1000, DEBUG);

500px
4.Test Result
Open the monitor, it will auto print the GPS Location information, show as below:
Maduino Zero SIM808 06A.PNG

We can show our location where we are in https://www.gps-coordinates.net/
Maduino Zero SIM808 06C.PNG

If there is no GPS Location, move to outdoor will be a good choice. Note: AT Command:

AT+CGNSPWR=1   //open GPS  (NEMA information output from GPS_TXD PIN, but in this board not breakout this pin, please set GPS info output from AT Command serial port)
AT+CGNSPWR=0   //turn off GPS
AT+CGNSSEQ="RMC"  //NEMA information output 
AT+CGNSURC=1  //print GPS information every 1 second
AT+CGNSURC=0   //Close the GPS information output from serial port


GPRS/GSM test

SIM808 is a GPRS/GSM+ GPS Quad-band module, with this board, we can use it as a GPS tracker, data acquisition, remote control and a lot of IOT project or smart home project.

1.Insert a Micro SIM card
The Maduino Zero SIM808 board uses the micro SIM card that is widely used in Android phone, install the Micro SIM card to the holder as below picture.
Maduino Zero SIM808 03.png
Note that some fee maybe needed for each SMS depends on your local GSM Operator, make sure that the SIM Card is active and enough money left for this application.
2.Connect the GSM, GPS Antenna and the 3.7V battery
Maduino Zero SIM808 04.PNG
Notes: We should ensure that the input voltage never drop below 3.0V even when current consumption rises to 2A in the transmit burst.That's the reason why we need a battery rather than just supply power via micro USB cable.
3.Programming and Download
Maduino Zero SIM808 05.PNG
The Codes for this application is very simple, define the SIM808 Power control pins:

//define the power control pin of SIM808:
int PWR_KEY=9;    //power on/off

Connect to GPRS/GSM network

sendData("AT+CGATT=1", 1000, DEBUG);

Initialize HTTP Service

sendData("AT+HTTPINIT", 1000, DEBUG);

Set HTTP parameters value

sendData("AT+HTTPPARA=\"URL\",\"http://api.thingspeak.com/update?api_key=AFOBW4DUD6T20414&field1=22.612008&field2=113.835192&field3=29.4&field4=76.6\"", 1000, DEBUG);

POST the data that set in command "AT+HTTPPARA"

sendData("AT+HTTPACTION=1", 1000, DEBUG);//HTTP POST success if get responce: +HTTPACTION: 1,200,0

Select the right port and Arduino board: Arduino Zero(Native USB Port) to upload the firmware to Maduino Zero SIM808 GPS board
500px
4.Test Result
Open the link: https://thingspeak.com/channels/826320 it will show the data as below:
Maduino Zero SIM808 07.PNG


Note: AT Command:

AT+SAPBR=3,1,"CONTYPE","GPRS"  //
AT+SAPBR=3,1,"APN","CMNET"
AT+SAPBR=1,1
AT+HTTPINIT
AT+HTTPPARA="URL","http://api.thingspeak.com/update?api_key=AFOBW4DUD6T20414&field1=22.612008&field2=113.835192&field3=29.4&field4=76.6"
AT+HTTPACTION=1
AT+HTTPREAD
AT+HTTPTERM

FAQ

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

Resources