I'm working with arduino nano and it has interfaced with SIM900 GSM. I'm sending "AT\r" to GSM modem, but not getting response.
void setup()
{
Serial.begin(9600);
Serial.println("Setup is Ready");
}
void loop()
{
Serial.write("AT\r");
delay(1000);
if(Serial.available() > 0)
{
Serial.println("Data received");
Serial.println(Serial.read());
}
}
Serial monitor:
Setup is Ready
ATATATATATATATATATATATATATATATATATAT
I've set the 9600 baudrate to modem and my rx and tx is connected correctly... What is the problem?
Thanks