Hi everyone,
I am working on a GSM module (SIM800L). I tried to power it using arduino and connecting it to RX and TX pins using the following code but without any response coming on my phone number. I also tried to power it using LM2596 (DC-DC buck converter). I attached the photo of the used converter. I also tried to use the module in the open air to ensure that the module network is fine but it also does not work. In all cases mentioned, the module blinks every one second which in turns indicate that the module is not establishing a network connection. Hope any one could help.
Regards,
the code used :
I am working on a GSM module (SIM800L). I tried to power it using arduino and connecting it to RX and TX pins using the following code but without any response coming on my phone number. I also tried to power it using LM2596 (DC-DC buck converter). I attached the photo of the used converter. I also tried to use the module in the open air to ensure that the module network is fine but it also does not work. In all cases mentioned, the module blinks every one second which in turns indicate that the module is not establishing a network connection. Hope any one could help.
Regards,
the code used :
GSM module for Ardunio:
#include <SoftwareSerial.h>
//Create software serial object to communicate with SIM800L
SoftwareSerial mySerial(3, 2); //SIM800L Tx & Rx is connected to Arduino #3 & #2
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
//Begin serial communication with Arduino and SIM800L
mySerial.begin(9600);
Serial.println("Initializing...");
delay(1000);
mySerial.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
mySerial.println("AT+CMGF=1"); // Configuring TEXT mode
updateSerial();
mySerial.println("AT+CMGS=\"+ZZxxxxxxxxxx\"");//change ZZ with country code and xxxxxxxxxxx with phone number to sms
updateSerial();
mySerial.print("Last Minute Engineers | lastminuteengineers.com"); //text content
updateSerial();
mySerial.write(26);
}
void loop()
{
}
void updateSerial()
{
delay(500);
while (Serial.available())
{
mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
}
while(mySerial.available())
{
Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
}
}
Attachments
-
453.3 KB Views: 16
-
73.8 KB Views: 16