background image

(/wiki/index.php/File:TEL0097_pin_mapping.png)

SIM808 GPS/GPRS/GSM Shield

Module interface and precautions:

1. Occupied pins: D0, D1, D12, the digital pin "D12" is connected to SIM808 module power GPIO. It can be used as SIM808 module on / off control.
2. SIM808 onboard MIC and 3.5mm SIM808 microphone are using the same MIC channel, when you plugin your microphone, the on­board MIC will be

automatically disconnected.

3. Boot switch button ­­SIM808 module switch, short­press 1s to start SIM808 , long­press 3s turn it off.
4. LED "ON" ­ SIM808 power indicator, only when you connect an external power, the module can work properly.
5. Net ­ GSM signal indicator

1. Fast Flash: Search Network
2. Slow flash (3s once): network registration complete

6. Function switch

1. None­­ Vacant SIM808 serial pin to download the sketch, please dial to here.
2. USB_DBG­­ When the expansion board plugged on the Arduino, dial to here to make SIM808 communicate with PC to make a debug (AT debugging).
3. Arduino­­ When the expansion board plugged on the Arduino, dial to here to make SIM808 communicate with Arduino.

Arduino Examples

In this SIM808 Arduino Shields 

 tutorial we will cover how to use Arduino to drive a SIM808 GPS/GPRS/GSM Shield.

DFRobot_SIM808 is a open­source Arduino library with intuitive functions. With an array of functions packaged into a single library, you can focus on your project
and not waste time studying complex AT commands.

This tutorial includes:

Send and receive GPRS data
Receive GPS data
Send and receive SMS messages
Make and receive phone calls

Preparation

Hardware:

1 x Arduino UNO 
1 x SIM808 Expansion Shield 
1 x External Power Supply
1 x SIM Card

Software:

Arduino IDE Click to Download Arduino IDE from Arduino® (https://www.arduino.cc/en/Main/Software)
DFRobot_SIM808 library Click to Download DFRobot_SIM808 library (https://github.com/DFRobot/DFRobot_SIM808)

Steps:

1. Insert a SIM card in to the SIM slot on the SIM808 expansion shield
2. Stack the expansion shield on to an Arduino UNO
3. Connect an external power source to the Arduino

Содержание TEL0097

Страница 1: ...n SIM908 SIM808 made some improvement on the performance and stability In addition to the normal SMS and phone functions the shield also supports MMS DTMF FTP and other functions You can achieve the d...

Страница 2: ...e with PC to make a debug AT debugging 3 Arduino When the expansion board plugged on the Arduino dial to here to make SIM808 communicate with Arduino Arduino Examples In this SIM808 Arduino Shields tu...

Страница 3: ...sim808 init delay 1000 Serial print Sim808 init error r n Serial println Sim808 init success Serial println Start to call Call specified number sim808 callUp PHONE_NUMBER void loop nothing to do Send...

Страница 4: ...lease call or send SMS message to me void loop Wait serial data if sim808 readable sim808_read_buffer gprsBuffer 32 DEFAULT_TIMEOUT Serial print gprsBuffer Detect the current state of the telephone or...

Страница 5: ...if messageIndex 0 sim808 readSMS messageIndex message MESSAGE_LENGTH phone datetime In order not to full SIM Memory is better to delete it sim808 deleteSMS messageIndex Serial print From number Serial...

Страница 6: ...nect TCP mbed org 80 Serial println Connect error else Serial println Connect mbed org success Send a GET request Serial println waiting to fetch sim808 send http_cmd sizeof http_cmd 1 while true int...

Страница 7: ...ial print speed_kph Serial println sim808 GPSdata speed_kph Serial print heading Serial println sim808 GPSdata heading Serial println Turn off the GPS power sim808 detachGPS USB Debugging AT command I...

Страница 8: ...08 chip through the serial port assistant Make a Phone Call wiki index php File TEL0097_Phone_call png Make a Phone Call Send AT in the serial port assistant if it returns OK it means that serial comm...

Страница 9: ...wiki index php File TEL0097_Send_Message png Send Message Read SMS wiki index php File TEL0097_Read_Message png Read Message TCP Communication...

Страница 10: ...More exciting instruction please refer to AT command on the page of the end These two test code are very simple and easy to be understood Only need to enter the corresponding serial AT commands you wo...

Страница 11: ...Series GNSS Application Note V1 00 https github com leffhub DFRobotSIM808_Leonardo_mainboard raw master Documents NEW 20SIM800 20Series_GNSS_Application 20Note 20V1 00 pdf SIM800 Series AT Command Ma...

Отзывы: