SIM900 stopped working


hi, using sim900 shield send sms, worked perfect. when tried again @ 15 minutes did not work anymore.

code: [select]

#include <softwareserial.h>
softwareserial sim900(7, 8);

void setup() {
  sim900.begin(19200);
  delay(25000);
  serial.begin(19200);
  serial.println("conectado");
}

void loop() {
  sendsms();
  delay(100);
  sim900.println();
  delay(30000);
  while(1);
}

void sendsms() {
  sim900.print("at+cmgf=1\r");
  delay(100);
  sim900.println("at+cmgs=\"xxxxxxxxxxxx\"");
  delay(100);
  sim900.println("mensaje enviado desde arduino con gsm/gprs shield sim900");
  delay(100);
  sim900.println((char)26);
  delay(100);
  sim900.println();
  delay(5000);
  serial.println("mensaje enviado con exito!");
}

two suggestions:

1) check connections, make sure none have come loose.
2) try running softwareserial @ 9600.


Arduino Forum > Products > Arduino GSM Shield (Moderator: fabioc84) > SIM900 stopped working


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

RFID-RC522 with Arduino Pro Micro project. Error on the code?