Saturday, 26 January 2019

Arduino - VIII

After the last article on the integration of  GSM (Global System for Mobile Communication) Shield with Arduino, we extend the discussion in this post to looking at sending SMS (Short Message Service) from our integrated setup

We will be using the same setup comprising SIM800 with a SIM card that we used in the earlier post. The communication between Arduino and the GSM Shield will be the Rx, Tx and Ground on Arduino to Tx, Rx and Ground on GSM Shield, respectively, as is shown below for reference:




















The code is the same as the last article

First, we will send the SMS manually using the Arduino Serial Monitor using the following commands:

AT+CMGF=1          // Sets SMS system into text mode

AT+CMGS= "xxxxxxxxxx"  //Sets the destination number. No need to prefix with + or country code

Above command returns a prompt

Enter message and end with

First Message

This will send the message and you will get a success response as in steps show below:




















Screenshot from mobile is shown below:

















We can also send the SMS programmatically. The code is shown below:


















Screenshot from mobile is shown below:



















In this post we have sent SMS through Serial Monitor and also programmatically. This concludes the post on sending SMS using GSM Shield