GSM (Global System for Mobile Communication) technology lets user to communicate with others across mobile networks hence it offers a vast area of coverage. Interfacing GSM technology with microcontroller will enable us to extend the communication to cover large area. This tutorial will teach you about interfacing GSM module with atmega32 AVR microcontroller and program it to communicate it with another user.
GSM modem is nothing but a special hardware that modulates and demodulates GSM signals. There are plenty of GSM modems specially designed for interfacing and working with Microcontroller, you can find it online. We are using GSM SIM900A model in this tutorial to explain the interfacing.
We have added “Buy here” links in the below table to buy the listed components with ease. Since we are a sales partner of Amazon you could do a favor by buying parts from below link and this will earn some referral fee for us. By this way you could be a indirect contributor to our site.
LINK TO BUY
|GSM/GPRS Modem||SIM900A||1||Buy here|
These are the set of commands that are predefined in order to establish a communication between controller and modem. Also with the help of these commands a SMS or call has been made out. Take a look at the ” Commands used in a GSM modem ” for detailed description about it.
TEPS TO INTERFACE GSM MODEM WITH MICROCONTROLLER:
STEP 1: MODEM TESTING:
The Modem consists of two indicating LED’s Green and Red to indicate the availability of the network. Green indicates the availability of the network whereas red indicates its absence. Turn the modem ON and wait for sometime to register itself in GSM network.
STEP 2: INTERFACING WITH AVR MICROCONTROLLER:
The Communication between AVR and modem takes place through USART protocol. GSM Modem SIM900 works on TTL level hence we can interface directly to RXD and TXD pins of AVR microcontroller. There is no need of using Voltage or level converter between them. However if you ever happen to buy a SIM300 or other module which operates above TTL level, you may want to use MAX232 level converter IC to make the communication possible.
STEP 3: INITIALIZING MODEM:
The modem must be Initialized using the commands and then the process you are about to carry out must be selected. In this tutorial am going to initialize the modem and them make it to send a message “Hi Murugan” to my mobile using the GSM modem. And then i will reply to the message which will be displayed in the LCD interfaced to the microcontroller.
Read More: Interfacing GSM Module with Atmega32 AVR microcontroller