Toll-Free Customer Support 24/7

Arduino GSM Code

/*
 * Project name:
GSM GPRS SIM 900A module with Stub Antenna and SMA connector
 * Copyright
     (c) Researchdesignlab.com
 * Description:
    
 * Test configuration:
     MCU:             ATMEGA328
     Dev.Board:       Arduino uno
     Oscillator:      16 MHz
     Software:        Arduino

*/


void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
delay(5000);
}

// the loop routine runs over and over again forever:
void loop() {

Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1");
delay(1000);
Serial.println("AT+CMGS=\"1234564654\"");
delay(1000);
Serial.print("msg sent ");
Serial.write(26);
delay(1000); // delay in between reads for stability
}

Back to top