Difference between revisions of "Maduino Zero SIM808 GPS Tracker"
(→Introduction) |
(→Interface Function) |
||
Line 24: | Line 24: | ||
== Interface Function == | == Interface Function == | ||
− | [[File: | + | [[File:MaduinoZeroSIM808V2.0_01.JPG|700px]]<br> |
①PWR: Power indicate<br> | ①PWR: Power indicate<br> | ||
②CHG: Charge indicate<br> | ②CHG: Charge indicate<br> | ||
Line 36: | Line 36: | ||
⑩RESET: Reset button for ATSAMD21G18<br> | ⑩RESET: Reset button for ATSAMD21G18<br> | ||
− | [[File: | + | [[File:MaduinoZeroSIM808V2.0_02.JPG|700px]]<br> |
①Micro SIM Card Holder<br> | ①Micro SIM Card Holder<br> |
Revision as of 08:19, 13 December 2019
Contents
Introduction
Maduino Zero SIM808 GPS Tracker 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
Features
- BAT Input Voltage: 3.4-4.2V
- ATSAMD21G18, 32-Bit ARM Cortex M0+
- Micro SIM connector
- Integrated Power Control System
- Support AT Command
- Quad-band: 850/900/1800/1900Mz
- Support GPS location
- Support GPRS data traffic, the maximum data rate, download 85.6Kbps, upload 42.8Kbps
- Support SMS text messaging
- Support USB power charge
- Support Micro SD Card
- Interface: I2C/SPI/UART/18*GPIO
- Arduino compatible
- Working Temperature: -40 ~ 85℃
- Default baud rate: 115200
- Size: 40*55mm
Interface Function
①PWR: Power indicate
②CHG: Charge indicate
③GSM: GSM Antenna IPX Interface
④VBAT: 3.7V Lipo battery connector
⑤CHG: 5V power input, can connect the solar panel to charge the lipo battery.
⑥Micro USB: 5V power input, USB to serial communication
⑦STA: SIM808 GPS status indicate
⑧NET: SIM808 Network indicate
⑨GPS: GPS Antenna IPX Interface
⑩RESET: Reset button for ATSAMD21G18
①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.
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.
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
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);
4.Test Result
Open the monitor, it will auto print the GPS Location information, show as below:
We can show our location where we are in https://www.gps-coordinates.net/
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.
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
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
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
4.Test Result
Open the link: https://thingspeak.com/channels/826320 it will show the data as below:
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.