loading

This is a very low cost and simple Arduino GSM and GPRS module. We use the module SIMCom SIM900A . It’s the cheaper module now avalaible in the market.This post will allow you to make arduino controlled calls and also send text messages.

Step 1: Some Important Notes and Powering Up the GSM Module

1. We use SIM900 GSM Module – This means the module supports communication in 900MHz band. We are from India and most of the mobile network providers in this country operate in the 900Mhz band. If you are from another country, you have to check the mobile network band in your area. A majority of United States mobile networks operate in 850Mhz band (the band is either 850Mhz or 1900Mhz). Canada operates primarily on 1900 Mhz band.

2. Check the power requirements of GSM module – GSM modules are manufactured by different companies. They all have different input power supply specs. You need to double check your GSM modules power requirements. In this tutorial, our gsm module requires a 12 volts input. So we feed it using a 12V,1A DC power supply. I have seen gsm modules which require 15 volts and some other which needs only 5 volts. They differ with manufacturers. If you are having a 5V module, you can power it directly from Arduino’s 5V out.

BOOTING UP THE GSM:

1. Insert the SIM card to module and lock it.

2. Connect the adapter to module and turn it ON!

3. Now wait for some time (say 1 minute) and see the blinking rate of ‘status LED’ (GSM module will take some time to establish connection with mobile network)

4. Once the connection is established successfully, the status LED will blink continuously every 3 seconds.

Step 2: Making Connections

There are two ways of connecting GSM module to arduino. In any case, the communication between Arduino and GSM module is serial. So we are supposed to use serial pins of Arduino (Rx and Tx). So if you are going with this method, you may connect the Tx pin of GSM module to Rx pin of Arduino and Rx pin of GSM module to Tx pin of Arduino.

Now connect the ground pin of arduino to ground pin of gsm module! So that’s all! You made 3 connections and the wiring is over! Now you can load different programs to communicate with gsm module and make it work.

Note:- The problem with this connection is while programming. Arduino uses serial ports to load program from the Arduino IDE. If these pins are used in wiring, the program will not be loaded successfully to Arduino. So you have to disconnect wiring in Rx and Tx each time you burn the program. Once the program is loaded successfully, you can reconnect these pins and have the system working! To avoid this difficulty, I am using an alternate method in which two digital pins of arduino are used for serial communication. We need to select two PWM enabled pins of arduino for this method. So I choose pins 9 and 10 (which are PWM enabled pins). This method is made possible with theSoftwareSerial Library of Ardunio. SoftwareSerial is a library of Arduino which enables serial data communication through other digital pins of Arduino. The library replicates hardware functions and handles the task of serial communication.

<p>sir help me ,</p><p> can we use gsm library to code the gsm module as shown in the official website of arduino instead of using AT commands.if possible tell me as soon as possible.and the website is https://www.arduino.cc/en/Tutorial/GSMExamplesSendSMS</p>
<p>Hi Brother, </p><p>While using Arduino and Sim900a (Mini V3.8 2014.10) I am getting &quot;Error&quot;.</p><p>I have attached &quot;Error MSG&quot; image.</p><p>My connections are <br>Sim900a --------------&gt; Arduino</p><p>VCC --------------------+5v</p><p>GND---------------------GND</p><p>5VT(TX)-----------------------9(RX)</p><p>5VR(RX)-----------------------10(TX)</p><p>---------------------------------------------</p><p>Is there any other connections i have to do?</p><p>Plz Guide me for that. Thanks for your help.</p>
<p>Im using GSM Module Sim900A Mini V3.8.2 2014.10 and it works easily using this method on arduino uno, by putting 5VT on pin 9 and 5VR on pin 10.</p>
<p>here's my program i'm editing it from the source (tribute to the builder)<br><br>//ERFINDER CODE</p><p>#include &lt;SoftwareSerial.h&gt;</p><p>String pilih;</p><p>SoftwareSerial mySerial(9, 10);</p><p>void setup()</p><p>{</p><p> mySerial.begin(9600); // Setting the baud rate of GSM Module </p><p> Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)</p><p> RecieveMessage();</p><p> delay(100);</p><p>}</p><p>void loop()</p><p>{</p><p> if (Serial.available()&gt;0)</p><p> switch(Serial.read())</p><p> {</p><p> case 's':</p><p> SendMessage();</p><p> break;</p><p> case 'r':</p><p> RecieveMessage();</p><p> break;</p><p> }</p><p> if (mySerial.available()&gt;0)</p><p> { Serial.write(mySerial.read());</p><p> pilih = mySerial.read();}</p><p>}</p><p> void SendMessage()</p><p>{</p><p> mySerial.println(&quot;AT+CMGF=1&quot;); //Sets the GSM Module in Text Mode</p><p> delay(1000); // Delay of 1000 milli seconds or 1 second</p><p> mySerial.println(&quot;AT+CMGS=\&quot;+62xxxxxxxxx\&quot;\r&quot;); // Replace x with mobile number</p><p> delay(1000);</p><p> mySerial.println(&quot;Message Send :)&quot;);// The SMS text you want to send</p><p> mySerial.println(pilih);</p><p> delay(100);</p><p> mySerial.println((char)26);// ASCII code of CTRL+Z</p><p> delay(1000);</p><p>}</p><p> void RecieveMessage()</p><p>{</p><p> mySerial.println(&quot;AT+CNMI=2,2,0,0,0&quot;); // AT Command to recieve a live SMS</p><p> delay(1000);</p><p> //There are different AT commands for different tasks. If you want to read </p><p> //all SMS&rsquo;s stored in your SIM card, send the following AT Command </p><p> //to gsm module &ndash; &ldquo;AT+CMGL=\&rdquo;ALL\&rdquo;\r&rdquo;</p><p> }</p>
<p>Hi Brother, <br>While using Arduino and Sim900a (Mini V3.8 2014.10) I am getting &quot;Error&quot;.</p><p>I have attached Error MSG in the image.</p><p>My connections are <br>Sim900a --------------&gt; Arduino</p><p>VCC --------------------+5v</p><p>GND---------------------GND</p><p>5VT(TX)-----------------------9(RX)</p><p>5VR(RX)-----------------------10(TX)</p><p>---------------------------------------------</p><p>Is there any other connections i have to do?</p><p>Plz Guide me for that. Thanks for your help.</p>
<p>can i see your code ?<br>please . </p>
<p>hi , I just try the same what u sayed but no way , I can't make a call or send a msg </p><p>:( </p>
<p>Sir can u help me, what if i want to add an if in the receive message, lets say</p><p> void RecieveMessage()</p><p>{</p><p>mySerial.println(&quot;AT+CNMI=2,2,0,0,0&quot;); // AT Command to recieve a live SMS</p><p>if(mymssage== &quot;Open the door&quot;);</p><p>digitalWrite(13,HIGH)</p><p>delay(1000);</p><p>}</p><p>problem is i dunno what kind of code/syntax should i use. TIA!</p>
<p>thank you thank you and thank you so much my dear friend, i made this project.</p><p>i have been working this project for one week and checked many website but i was faile, but when i open instructable and looked your project page and follow your project then my project was working, i was very happy that time becouse this is my first project of wireless</p><p>thank you again dear friend</p><p>its very helpful for me</p><p>please upload your more project of wireless</p>
<p>I'm using sim800 and I dont have an antenna. Where can I buy it? Is the antenna really necessary</p>
No
<p>thanks Erfinden ! helped me to learn a lot!</p>
<p>thanks a lot for sharing this. :)</p>
<p>assalam-o-alikum...<br>i have a question to ask... can gsm library be used with sim900a mini modules? because apparently it doesn't seem to be working. is there any method to make it work for them?</p>
<p>I tried this code but it&rsquo;s not working. Might be i have to RS232 with TTL.Please check my GSM module either it has TTL or not? Link for GSM image.</p><p><a href="http://www.evselectro.com/gadgets-and-gifts-sim-900d-1905?keyword=gsm&category_id=0" rel="nofollow">http://www.evselectro.com/gadgets-and-gifts-sim-900d-1905?keyword=gsm&amp;category_id=0</a><br>Please reply me.</p>
<p>Why did not we connect the Rx to Rx and Tx to Tx?</p>
Because RX means receiver where tx represents transfer of data, tx to rx transfer to the receiver arduino to sim 900a device and visa versa
<p>Thank you :)</p>
<p>i am using sim900A, i am unable to send sms and call, i have the same configuration</p><p>what i need to do ?</p>
Hi. I have a similar setup. I am able to make calls or send sms. However i am not able to connect to gprs. Have you tried that?
<p>sir, i try this by following ur instructions , but still it doesn't able to send a message to my phone.</p><p>please help,,</p><p>hoping for your respond</p>
<p>Hi, I still cant sending those text nor receiving text. i have tried to change the baud rate, and checking the connection between Rx and Tx pin as you mention. but still nothing happen. can you help me ?</p>
I have a dough, that if we call/msg from phone will it cost money .?? As we are using mobile tower to communicate with the GSM module.
<p>ya obviously as you are using ur sim network so default call and sms rates are applicable/</p>

About This Instructable

109,722views

50favorites

License:

Bio: We are 4 Electronics Engineer working towards the betterment of new technology and bring to you the basic as well as advanced instructables one can ... More »
More by Erfinden:Interfacing SIM900A GSM Modem with Arduino Handy Polarity Checker Magic Wand  POV Message Display using Bluetooth Module 
Add instructable to: