fbpx

Interface GSM With Arduino

GSM stands Global System for Mobile communication

  • It is a digital cellular technology used for transmitting voice and data services.
  • GSM operate on mobile communication band 900mhz and 1800mhz,it operate on 850mhz and 1900mhz.
  • GSM use narrowband Time Division Multiple Access (TDMA) technique for transmitting signals.
  • GSM has different configuration :
    • Sim300.
    • Sim900.
    • Sim900A.
  • Sim300 is Triband GSM modem it can operate at three frequency 900mhz,1800mhz,1900mhz band.
  • Sim900 is a Quadband GSM mode it can operate at four frequency frequency 850mhz, 900mhz, 1800mhz,1900mhz.
  • Sim900a is a Dualband GSM mode it can operate at two frequency 900mhz,1800mhz.
  • AT commands use to control the modem.
  • In GSM mode for each functions like make call and to send message, to access internet ,there is set of at commands is used to activate the function.

AT Commands

AT SMS Commands

Hardware Required

  • GSM Module.
  • Arduino.

Gsm Pinout

  • Vin= +5V.
  • Tx= Rx of Microcontroller.
  • Rx= Tx of Microcontroller.
  • Gnd= Ground.

Circuit

Virtual Circuit

Code

void  setup()
 {
 Serial.begin(9600);
 }
 void loop()
 {
 Serial.print("AT+CMGF=1\r\n");
 delay(1000);
 Serial.print("AT+CMGS=");
 Serial.print('"');
 Serial.print("mobile number");
 Serial.print('"');
 Serial.print('\r');
 delay(1000);
 Serial.print("THIS IS ARDUINO");
 delay(100);
 Serial.write(26);
 delay(50000);
 }

Leave a Reply

Your email address will not be published. Required fields are marked *