Saturday, September 7, 2013

Interfacing Arduino with GSM Module

Getting Started


What is Arduino?


It's an open-source physical computing platform based on a simple microcontroller board which you can program by using the software provided by Arduino manufacturer by connecting it to your computer using USB cable.




For More Information Regarding Arduino, Visit its official Website: http://arduino.cc 

GSM/GPRS module

GSM/GPRS module is used to establish communication between a computer and a GSM/GPRS system. Global System for Mobile communication (GSM) is an architecture used for mobile communication in most of the countries. Global Packet Radio Service (GPRS) is an extension of GSM that enables higher data transmission rate. GSM/GPRS module consists of a GSM/GPRS modem assembled together with power supply circuit and communication interfaces (like RS-232, USB, etc) for computer. The MODEM is the soul of such modules.



Wireless MODEMs

Wireless MODEMs are the MODEM devices that generate, transmit or decode data from a cellular network, for establishing communication between the cellular network and the computer. These are manufactured for specific cellular network (GSM/UMTS/CDMA) or specific cellular data standard (GSM/UMTS/GPRS/EDGE/HSDPA) or technology (GPS/SIM). Wireless MODEMs like other MODEM devices use serial communication to interface with and need Hayes compatible AT commands for communication with the computer (any microprocessor or microcontroller system).

GSM/GPRS MODEM 


GSM/GPRS MODEM is a class of wireless MODEM devices that are designed for communication of a computer with the GSM and GPRS network. It requires a SIM (Subscriber Identity Module) card just like mobile phones to activate communication with the network. Also they have IMEI (International Mobile Equipment Identity) number similar to mobile phones for their identification.

 A GSM/GPRS MODEM can perform the following operations:

1.      Receive, send or delete SMS messages in a SIM.
2.      Read, add, search phonebook entries of the SIM.
3.      Make, Receive, or reject a voice call.

The MODEM needs AT commands, for interacting with processor or controller, which are communicated through serial communication. These commands are sent by the controller/processor. The MODEM sends back a result after it receives a command. Different AT commands supported by the MODEM can be sent by the processor/controller/computer to interact with the GSM and GPRS cellular network.

 GSM/GPRS Module

A GSM/GPRS module assembles a GSM/GPRS modem with standard communication interfaces like RS-232 (Serial Port), USB etc., so that it can be easily interfaced with a computer or a microprocessor / microcontroller based system. The power supply circuit is also built in the module that can be activated by using a suitable adaptor.

There are diffirent versions of GSM Modules available in the market.
Arduino GSM shield can also be used which makes the work easy since we can use Arduino GSM Library.
for further detail you can visit  http://arduino.cc/en/Tutorial/HomePage

Block Diagram


Interfacing the Modem with ARDUINO

In this section we will discuss about interfacing SIM900 GSM/GPRS module with Arduino



SIM900 GSM/GPRS module Hardware




To interface GSM module with Arduino three connections have to be made between them along with separate power supply.
The three connections are:


     1.      Connect TX pin of SIM900 GSM/GPRS module to TX pin of Arduino,
     2.      Connect RX pin of SIM900 GSM/GPRS module to RX pin of Arduino,
     3.      Connect GND pin of SIM900 GSM/GPRS module to GND pin of Arduino


*Note that GSM board should be powered with separate power source because current from the Arduino will not be enough to drive the GSM Module.


Circuit Configuration




Description

1) Insert SIM card 
Open the SIM cardholder by sliding it as per the arrow mark and lift up. Insert the SIM card , so as to align the chamfered corner suits in card holder .After inserting the SIM card, lock the holder by sliding it to the opposite direction of arrow mark. 

2) Connect The Antenna

Fix the Supplied RF antenna to the SMA Antennae connector and tighten it by Rotating the Nut ( Never rotate the antennae for tightening ).

3) Connect the Pins 

Connect the GSM modem as per the circuit diagram provided 

4) Power the Modem 

Power the modem from suitable power supply, which is having enough current capacity (>1A).

5) Check the Status of the LEDs 

PWR LED - Red LED will lit immediately 
STS LED - Green LED will lit after 1-2 seconds 
NET LED -Blue LED will starts to blink in fast for few seconds(Searching For Network) and becomes slow blinking once the Modem registers with the Network.

6) Network LED

The Network LED indicates the various status of GSM module eg. Power on, Network registration & 
GPRS connectivity. When the modem is powered up, the status LED will blink every second. After the Modem registers in the network (takes between 10-60 seconds), LED will blink in step of 3 seconds. At this stage you can start using Modem for your application. 

7) Baud rate

The Baud rate supported by the modem is between 9600 and 115200. Make sure the host system is set to the supported baud rate. 

NOTE
*The modem automatically sets to the baud rate of the first command sent by the host system after it is powered up. User must first send “A” to synchronize the baud rate. It is recommended to wait 2 to 3 seconds before sending “AT” character. After receiving the “OK” response, Your Device and GSM Modem are correctly synchronized. So there is no need for setting the baud rate using commands.

*Before You Start using the modem, please make sure that the SIM card you inserted support the needed features and there is enough balance in SIM.!!!

                    click here to view the DATA SHEET of SIM900 GSM.GPRS MODULE
                                                     Get one(form Nepal)

6 comments:

  1. good working on the theory behind it Uttam......really effective....

    ReplyDelete
  2. Also i would like to suggest you to put the hyperlinks of the website, references on the technical words that u have use. So that you will have no need of Reference section seperatly. Just like the wikipedia...

    ReplyDelete
  3. thank you Anand dai.. I will implement your suggestions fron next posts... :)
    I really appreciate your suggestions.

    ReplyDelete
  4. arduino gprs module: http://www.elecfreaks.com/store/gprsgsm-moduleefcom-pro-efcompro-p-450.html

    ReplyDelete
  5. can you explain why the connections are made in that manner???

    ReplyDelete
  6. This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this.. Waterproofing membrane

    ReplyDelete