Wireless GSM GPRS Module Quad-Band W/ Antenna Cable Cap (SIM800L V2.0 5V )
Data sheat pdf Programming manual pdf
Details
This SIM800l module has a set of TTL level serial interface; a set of power supply interface. Besides; there are a set of antenna interface on this module.
The chip of SIM800L basic features
SIM800H is a complete Quad-band GSM/GPRS solution in a LGA type which can be embedded in the customer
Applications:
SIM800H support Quad-band 850/900/1800/1900MHz; it can transmit Voice; SMS and data information with low power
Consumption:
With tiny size of 15.8*17.8*2.4 mm; it can fit into slim and compact demands of customer design. Featuring Bluetooth; FM and Embedded AT; it allows total cost savings and fast time-to-market for customer applications.
General features
Data sheat pdf Programming manual pdf sim800L Library
How to connect to Arduino board
If you want to Create a GPS tracker and send your postion via GSM (Ideal for Balloon tracking)
Code exsaples.
/* GSM MODULE TEST
*when you type in 's' the program will invoke
*function to SEND AN SMS FROM GSM module.if the
*user input is 'c ', the programwill invoke the
*function to
*
*/
#include <SoftwareSerial.h> //including software serial library
SoftwareSerial sim800l(2, 3); // create a constructor of SoftwareSerial
void setup()
{
sim800l.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
delay(100);
sim800l.println("AT");
delay(1000);
sim800l.println("AT+CFUN=?");
delay(5000);
//sim800l.println("AT+CFUN?");
//delay(5000);
sim800l.println("AT+CFUN=1");
delay(5000);
}
void loop()
{
if (Serial.available()>0) // checks for any data coming through serial port of arduino.
switch(Serial.read()) //
{
case 's':
SendTextMessage();
break;
case 'c':
DialVoiceCall();
break;
}
if (sim800l.available()>0)
Serial.write(sim800l.read()); // prints the data collected from software serial port to serial monitor of arduino
}
void SendTextMessage()
{
Serial.println("Sending Text...");
sim800l.print("AT+CMGF=1\r"); // Set the shield to SMS mode
delay(100);
sim800l.print("AT+CMGS=\"+2783*******\"\r"); // change to your number
delay(200);
sim800l.print("This is a Test text message from SIM800L "); //the content of the message
sim800l.print("\r");
delay(500);
sim800l.print((char)26);//the ASCII code of the ctrl+z is 26 (required according to the datasheet)
delay(100);
sim800l.println();
Serial.println("Text Sent.");
delay(500);
}
void DialVoiceCall()
{
sim800l.println("ATD+2783*******;");//dial the number, must include country code
delay(100);
sim800l.println();
}
#Hope this help
####################END#####################
More command details here
Data sheat pdf Programming manual pdf Sim800L library
Exsample using sim800l library
#include <Sim800l.h>
#include <SoftwareSerial.h> //is necesary for the library!!
Sim800l Sim800l; //to declare the library
char* text;
char* number;
bool error; //to catch the response of sendSms
void setup(){
Sim800l.begin(); // initializate the library.
text="Testing Sms"; //text for the message.
number="27083*******"; //change to a valid number.
error=Sim800l.sendSms(number,text);
// OR
//Sim800l.sendSms("+2708********","the text go here")
}
void loop(){
//do nothing
}
################# END ################