0% found this document useful (0 votes)
45 views1 page

SIM800L SMS Sending Tutorial

This document is an Arduino sketch that initializes a SIM800L module to send an SMS. It sets up a software serial communication, checks the module's readiness, configures it for text message mode, and sends a test SMS to a specified phone number. The loop function continuously reads any incoming data from the SIM800L module.

Uploaded by

kaishwarya978
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views1 page

SIM800L SMS Sending Tutorial

This document is an Arduino sketch that initializes a SIM800L module to send an SMS. It sets up a software serial communication, checks the module's readiness, configures it for text message mode, and sends a test SMS to a specified phone number. The loop function continuously reads any incoming data from the SIM800L module.

Uploaded by

kaishwarya978
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#include <SoftwareSerial.

h>

SoftwareSerial sim800l(11, 10); // RX, TX

void setup() {
[Link](9600);
[Link](9600);

delay(1000);
[Link]("Initializing...");

// Check if SIM800L is responding


[Link]("AT");
delay(1000);
if ([Link]()) {
[Link]("Module is ready.");
} else {
[Link]("No response from module. Check wiring.");
return;
}

// Set SMS mode to text


[Link]("AT+CMGF=1");
delay(1000);

// Send SMS to the specified number


[Link]("AT+CMGS=\"+919943071295\""); // Set recipient number
delay(1000);
[Link]("This is a test SMS from SIM800L."); // SMS content
delay(1000);
[Link](26); // End message with CTRL+Z
[Link]("Test SMS Sent to 9943071295.");
}

void loop() {
if ([Link]()) {
[Link]([Link]());
}
}

You might also like