Panier d’achat

Aucun produit dans le panier.

Home Shop Cart0 Phone
Module-GSM-GPRS-SIM800L-V2.0-5V
Module GSM GPRS SIM800L V2.0 5V

230.00 د.م.

230.00 د.م.

Rupture de stock

Module GSM GPRS SIM800L V2.0 5V

230.00 د.م.


SIM800L V2 is a popular SIM module that easily used with Arduino. The version 2 5V pin enabled for power that make this module easier to use than the regular SIM800L.

Rupture de stock

Description

Tutoriel : Utilisation Module GSM/GPRS SIM800L V2 avec ARDUINO (English)


SIM800L V2 is a popular SIM module that easily used with Arduino. The version 2 has 5V pin enabled for power that make this module easier to use than the regular SIM800L.

In this tutorial, I will examine how to send SMS, receive SMS and make a call. You can find full video tutorial here :


SIM800L V2 with arduino Wiring Diagram

Send and receive message SIM800L V2 using ARDUINOSIM800L V2 with arduino wiring diagram


The Sketch

/* 
* Réaliser par Micro-Electroniques Générales au Maroc 
* Visite notre site megma.ma 
*/

#include <SoftwareSerial.h>
SoftwareSerial sim(10, 11);
int _timeout;
String _buffer;
String number = "+6281222329xxx"; //-> change with your number
void setup() {
//delay(7000); //delay for 7 seconds to make sure the modules get the signal
Serial.begin(9600);
_buffer.reserve(50);
Serial.println("Sistem Started...");
sim.begin(9600);
delay(1000);
Serial.println("Type s to send an SMS, r to receive an SMS, and c to make a call");
}
void loop() {
if (Serial.available() > 0)
switch (Serial.read())
{
case 's':
SendMessage();
break;
case 'r':
RecieveMessage();
break;
case 'c':
callNumber();
break;
}
if (sim.available() > 0)
Serial.write(sim.read());
}
void SendMessage()
{
//Serial.println ("Sending Message");
sim.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(200);
//Serial.println ("Set SMS Number");
sim.println("AT+CMGS=\"" + number + "\"\r"); //Mobile phone number to send message
delay(200);
String SMS = "Hello, how are you? greetings from miliohm.com admin";
sim.println(SMS);
delay(100);
sim.println((char)26);// ASCII code of CTRL+Z
delay(200);
_buffer = _readSerial();
}
void RecieveMessage()
{
Serial.println ("SIM800L Read an SMS");
sim.println("AT+CMGF=1");
delay (200);
sim.println("AT+CNMI=1,2,0,0,0"); // AT Command to receive a live SMS
delay(200);
Serial.write ("Unread Message done");
}
String _readSerial() {
_timeout = 0;
while (!sim.available() && _timeout < 12000 )
{
delay(13);
_timeout++;
}
if (sim.available()) {
return sim.readString();
}
}
void callNumber() {
sim.print (F("ATD"));
sim.print (number);
sim.print (F(";\r\n"));
_buffer = _readSerial();
Serial.println(_buffer);
}

Pour toutes questions, remarques ou suggestions relatives à ce tutoriel, n’hésitez pas à nous contacter à notre page Facebook. (Même à 23h ou minuit si je ne dors pas je vous répondrai!)


Avis

Il n’y a pas encore d’avis.

Soyez le premier à laisser votre avis sur “Module GSM GPRS SIM800L V2.0 5V”

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Tous les résultats de recherche
×