Website under maintenance
Monday, October 09, 2017
MaxPhi
Embedded Systems Tutorials & Projects
Home
Arduino Tutorials
Arduino Projects
AVR Projects
Arduino Tutorials
GSM Module Interfacing with Arduino –
How to Make Call and SMS
August 31, 2017 admin Comment(0)
GSM technology is used to communicate with mobile phones. GSM stands for Global System
for Mobile communication. In arduino GSM tutorial, we will be interfacing GSM module with
arduino board. GSM modem interfacing with arduino is very easy. We simply need 4 pins to
connect to the arduino. These pins are GND, Vcc, RX and TX. Once we know the interfacing
and programming we can make call and SMS.
There are different GSM modems like SIM900 and SIM300 available in the market with
different onboard facilities like USB, rs232 and serial interface. We can also use GSM shield that
is easily stacked over the arduino board. Some modems have a GPS module inbuilt to provide
the longitude, latitude and other features of GPS.
GSM Modem – SIM900/SIM300
What GSM modem is good SIM300 or SIM900
SIM300 is triband GSM modem and operates at 900,1800,1900MHz band.
SIM900 is quad band GSM modem and operates at 850,900,1800,1900 MHz bands. And also
have GPRS functionalities useful in web enabled applications.
Select the GSM modem that supports the frequency band in your country.
You can find GSM Bands information by country.
GSM Modem Power Requirement
There is a different manufacturer of the modem. And their supply voltage and current
requirement may different. So before applying the supply check the datasheet of the modem. We
are using the modem with 12V and 1.5Amp current. If we provide less current like 500mA. The
modem will show the supply on the board but it will not operate correctly. And never get their
GSM network due to less current.
GSM Modem – Booting
Insert the SIM Card in the GSM modem. Before using GSM modem make sure it is booted
completely. There is a LED on the GSM board that blinks continuously when it doesn’t find any
GSM network signal. Once it detected the network its blink rate will slow down. To confirm that
GSM modem is working you can make a call. And you can hear the dialling tone on your
mobile.
Hardware Required
Arduino Uno
GSM Modem
GSM Arduino Connection
GSM interfaces with the arduino using serial communication. For this interfacing, you should
know what is serial communication in arduino. We are connecting the modem as we have
learned from the serial tutorial.
GSM AT Commands
AT commands are the instructions used to command the modem. AT is the abbreviation of
Attention. All commands start with “AT” or “at”. That’s why it is called “AT” command. AT is
the prefix in each command to inform the modem about the start of the command.
Arduino GSM Code for CALL
/* Arduino GSM Call */
void setup()
{
[Link](9600); //Baud rate of the GSM Module
delay(1000);
[Link]("ATD +91xxxxxxxxxx;\r"); //Phone number you want to call
}
void loop()
{
}
Arduino GSM Code for SMS
AT+CMGF=1 Set modem in text mode
AT+CMGS=”+91xxxxxxxxxx” SMS to this mobile number
Message Text
Message closing character Ctrl+Z(terminate and send)
/* Arduino GSM SMS */
void setup()
{
[Link](9600); //Baud rate of the GSM/GPRS Module
delay(1000);
[Link]("AT+CMGF=1\r");
delay(1000);
[Link]("AT+CMGS="+91xxxxxxxxxx"\r"); //Phone number you want to
send the sms
delay(1000);
[Link]("Hello Maxphi\r"); //Text message you want to send
delay(1000);
[Link](0x1A); //sends ctrl+z end of message
delay(1000);
}
void loop()
{
}
admin
Related Articles
Arduino Tutorials
PIR Motion Sensor Arduino Interfacing Tutorial
August 31, 2017 admin
PIR(Passive Infrared Sensor) sensor is an electronic sensor that measures the infrared light level
reflected from the object. This concept is used in PIR-based motion detectors. If you want
something to happen when you walk into the room, like turn on the lights to detect unwanted
person’s trespassing or any devices you want to turn […]
Arduino Tutorials
Relay Interfacing with Arduino
August 31, 2017 admin
Our main aim in this tutorial is how to control an AC appliance using Arduino. The major issue
is how can we drive an AC load using Arduino. We need some kind of interfacing devices. This
can be done by a relay. What is Relay It is an electromechanical device. It contains a solenoid
coil […]
Arduino Tutorials
Analog to Digital Conversion(ADC) with Arduino
August 31, 2017 admin
Analog to Digital Conversion(ADC) is a very useful feature in microcontrollers to interface
sensors. The main purpose of this features is to interface analog sensor with the Arduino UNO or
any microcontroller. There are different physical quantities in nature like pressure, temperature,
humidity and light intensity etc. Sometimes we develop the system that using these […]
Post navigation
Arduino Bluetooth HC-05 Interfacing Tutorial
PIR Motion Sensor Arduino Interfacing Tutorial
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Search for:
Recent Posts
Arduino Buzzer Tutorial And How To Use It With Arduino Board
DTMF Controlled Home Automation using AVR Microcontroller and LCD Display
LM35 Temperature Sensor Interfacing with Seven Segment Display using AVR
Bluetooth Home Automation using AVR Microcontroller
Android Mobile Phone Controlled Bluetooth Robot using AVR Microcontroller
Categories
Arduino Projects
Arduino Tutorials
AVR Projects
2017 editorial | Editorial by MysteryThemes.
Shares