i recently bought the SIM800L module wich i’m using with my Arduino Nano. I wired it following the attached circuit diagram (using the voltage divider because the arduino operating voltage is 5V and the sim800l operating voltage in 3.3V).
I also power it with a 3.7V 2200mha lipo battery.
The network led blinks every three seconds so I assume it connected correctly to the network, but when I try to send any command with the Serial Monitor of Arduino IDE i can’t get any response.
I’m using the SoftwareSerial library:
#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);"); //hang up
updateSerial();
}
void loop()
{
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
}
}
I also tried switching TX and RX pins, and sending commands to the module using println function on sim800l object, but nothing worked.
If i type any command into the serial monitor, i don’t get any response.
any suggestion?