0% found this document useful (0 votes)
330 views10 pages

GSM SIM900A With Arduino

This tutorial teaches how to interface a GSM SIM900A module with an Arduino board to enable phone call and SMS functionality. It includes steps for required materials, connecting the SIM900A to a power supply and Arduino, downloading a library, uploading sample code, and testing call, SMS, and other basic functions. Commands like ATD are used to dial a number, ATH to hang up, and AT commands configure the SIM900A for text mode SMS.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
330 views10 pages

GSM SIM900A With Arduino

This tutorial teaches how to interface a GSM SIM900A module with an Arduino board to enable phone call and SMS functionality. It includes steps for required materials, connecting the SIM900A to a power supply and Arduino, downloading a library, uploading sample code, and testing call, SMS, and other basic functions. Commands like ATD are used to dial a number, ATH to hang up, and AT commands configure the SIM900A for text mode SMS.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

technology workshop craft home food play outside costumes

Tutorial to interface GSM SIM900A with Arduino


by mybotic on October 10, 2016

Table of Contents

Tutorial to interface GSM SIM900A with Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Tutorial to interface GSM SIM900A with Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Material preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Booting up SIM900A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Pin Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Step 4: Basic AT Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Step 5: Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Step 6: Sample Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 7: Serial Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 8: Result : Call / Redial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 9: Result : Send and Receive SMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Step 10: Video Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Intro: Tutorial to interface GSM SIM900A with Arduino
Description

SIM900A Modem is built with Dual Band GSM/GPRS based SIM900A modem from SIMCOM. It works on frequencies 900/ 1800 MHz. SIM900A can search these two
bands automatically. The frequency bands can also be set by AT Commands. The baud rate is configurable from 1200-115200 through AT command. The GSM/GPRS
Modem is having internal TCP/IP stack to enable you to connect with internet via GPRS. SIM900A is an ultra compact and reliable wireless module. This is a complete
GSM/GPRS module in a SMT type and designed with a very powerful single-chip processor integrating AMR926EJ-S core, allowing you to benefit from small dimensions
and cost-effective solutions.

Specification
Dual-Band 900/ 1800 MHz
GPRS multi-slot class 10/8GPRS mobile station class B

Compliant to GSM phase 2/2+

Dimensions: 24*24*3 mm

Weight: 3.4g

Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands)
Supply voltage range : 5V

Low power consumption: 1.5mA (sleep mode)

Operation temperature: -40°C to +85 °

Step 1: Material preparation


In this tutorial, you will need :

1. GSM SIM900A (MINI V3.9.2)


2. Arduino Uno Board and USB
3. Jumper Wire
4. Power adapter 5V
5. SIM card
6. Breadboard

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Step 2: Booting up SIM900A
1. Insert your SIM card to GSM module and lock it. (picture 1 and 2)
2. power up your gsm by connecting it to Arduino's 5V and GND (picture 3)
3. Connect the Antenna (picture 4)
4. Now wait for some time (say 1 minute) and see the blinking rate of ‘status LED’ or ‘network LED’ (D6, refer picture 5) //GSM module will take some time to establish
connection with mobile network//
5. Once the connection is established successfully, the status/network LED will blink continuously every 3 seconds. You may try making a call to the mobile number of the
sim card inside GSM module. If you hear a ring back, the gsm module has successfully established network connection.

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Step 3: Pin Connection
You can see a TTL pin with 3VR, 3VT, 5Vr, 5VT, VCC and GND on your sim900a near your power supply pin. You have to connect GSM's 5VT to Arduino D9 and
GSM's 5VR to Arduino's D10 for serial communication between arduino and sim900a module.

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Step 4: Basic AT Command
1. To change sms sending mode : AT+CMGF=1
mySerial.println("AT+CMGF=1");

2. To read SMS in text mode : AT+CNMI=2,2,0,0,0


mySerial.println("AT+CNMI=2,2,0,0,0");

3. To make a call : ATD+60XXXXXXXXX; //replace X with number you want to call, change +60 to your country code
mySerial.println("ATD+60XXXXXXXXX;");

4. To disconnect / hangup call : ATH


mySerial.println("ATH");

5. To redial : ATDL
mySerial.println("ATDL");

6. To receive a phone call : ATA


mySerial.println("ATA");

Step 5: Library
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. To be able to interface gsm module with arduino, you will have to download this library and extract it into your Arduino's libraries.

File Downloads

SoftwareSerial.zip (8 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'SoftwareSerial.zip']
Step 6: Sample Source Code
Download the sample source code below and open it on your Arduino IDE. Select the correct board and port and upload it into your Arduino Uno Board.

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
File Downloads

sim900amini.rar (957 bytes)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'sim900amini.rar']
Step 7: Serial Monitor
After you has succesfully uploaded your source code, open your serial monitor. Serial monitor will display as shown in the picture above.

Step 8: Result : Call / Redial


1. As you key-in c : to make a call, gsm will read the ATD command and make a call to a phone number you have upload in your source code. (Picture 1 and 2)

2. When you key-in h : to disconnect/hangup call, gsm will read the ATH command and disconnect the connection. (Picture 3)

3. When you key-in e : to redial, gsm will read the ATDL command and redialing previous number it has called.(Picture 4)

4. When there is an incoming call, you can see RING printed on serial monitor and you can click i : to receive a call and GSM's ATA command will be carried out and
you will be connected to a call connection. (Picture 5)

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Step 9: Result : Send and Receive SMS
1. Key-in s to send SMS. Recepient's number and text message printed on serial monitor. NOTE : You can edit the recepient's phone number and text message on
your source code.

2. When gsm receive a message, text message and number will be printed on serial monitor.

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Step 10: Video Demonstration
This video shows how SIM900A MINI make a call, receive a call, send sms, receive sms, redial and hangup call based on the sample source code uploaded in this
tutorial.

Related Instructables

SIM900A Using the Interfacing Sending sms if Weather bot & Control relay
Interfacing with Sim900/sim900A SIM900A GSM smoke is Weather station with Arduino
Arduino UNO mini module Modem with detected using GSM and Sim900A by
and Running with Arduino Arduino by (Arduino+GSM shield by Agam using mobile
Simple AT UNO by Erfinden SIM900A by Tyagi phone SMS by
Commands by Happymacer us241098 TRUNGN44
Pritibakale

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/
Advertisements

Comments

http://www.instructables.com/id/GSM-SIM900A-With-Arduino/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy