Introduction: Arduino Cellular Shield Tutorial

The Arduino Cellular Shield allows you to make cellular telephone calls, and send text messages. The brains of this shield is the SM5100B which is a robust cellular module capable of performing many of the tasks of most standard cell phones. This shield requires use of a SIM card to connect to a cellular network. The tutorial that follows is a bare bones tutorial for initializing the shield, and both sending and receiving text messages, and telephone calls. To learn more about the module's functionality, be sure to check out the datasheets on Sparkfun's product page.

Step 1: Go Get Stuff

You will need:

(x1) Cellular shield
(x1) Stackable Arduino headers
(x1) Quad band antenna
(x1) Arduino Uno (or similar)

Step 2: Solder Headers

Insert the headers into the shield and solder them into place.

Step 3: Insert

Insert the header pins into the sockets on the Arduino.

Step 4: Resolder

The antenna cable's connection to the SM5100B module is usually not very good. Resolder each of the cable's connections to the module to ensure connectivity.

Step 5: Attach the Antenna

Thread the antenna to the antenna cable.

Step 6: Insert SIM Card

Insert the SIM card securely into the SIM card socket.

Step 7: Initialize

Run the following code on the Arduino:

Open the serial port in the terminal. On a Mac this is accomplished by typing:
screen /dev/tty.usbmodemfa131 9600

(replace tty.usbmodemfa131 with your Arduino's serial address)


Wait to see the following sequence returned:

Starting SM5100B Communication...

+SIND: 3

+SIND: 4

+SIND: 11

(If this sequence is not returned check the error codes listed at the bottom of the code above, and debug appropriately. You may need to set the module for North American usage -- see below -- before it registers to network (i.e. +SIND 11))

Send the following commands to the serial port:

Send this for North American usage:
AT+SBAND=7

Set the current time - yy/mm/dd:
AT+CCLK="13/05/15,11:02:00"

Send test call:
ATD4155551212

Step 8: Text Messages

Download and install SerialGSM into your Arduino library.

To send a text message visit the Tronixstuff cellular module tutorial and use example code 26.3:
http://tronixstuff.wordpress.com/2011/01/19/tutorial-arduino-and-gsm-cellular-part-one/

If you would like to run the example code to receive a text, connect an LED to pin 8 and put it in series with a 220 ohm resistor to ground.

To send a text message visit the Tronixstuff cellular module tutorial and use example code 26.5:
http://tronixstuff.wordpress.com/2011/01/19/tutorial-arduino-and-gsm-cellular-part-one/

Text one of the following commands to your cellular module:

//turns the LED on
#a1

//turns the LED off
#a0

Step 9: Voice

Connect a microphone and speaker to the shield using grounded audio cable. The center signal wire should go to the audio plus terminals and the shielding should go to the respective negative terminals on the shield. These cables should be connected similarly on the microphone and speaker side.

To initialize a voice call upload the following code:


To receive a voice call upload the following code:

Comments

author
malcolmt made it! (author)2013-05-20

Excellent tutorial, thank you.

author
Highvoltage89 made it! (author)Highvoltage892014-03-17

Hey where can I get a SIM card

author
IzNoGuD made it! (author)2013-05-14

very informative instructable,
is it possible to use it to start an independent vehicle heater with a phone call or an text message?
is it possible to accept only phone calls ortext messages from one or more specific telephone numbers?

thank you

author
BenHarper made it! (author)BenHarper2013-11-19

Im sure using relays attached to a port on your Arduino you could operate your heater on receiving an appropriately worded SMS, not more difficult than turning on an LED. On top of that you could also simply check and ignore any SMS's not showing your own mobile number as the sender so yes to both.

author
DWP2 made it! (author)2013-09-26

Perfect, this is just what I've been looking for. Now please, could you provide instructions for sending an image file to a basic camera phone (such as a Nokia E52)? Thanks very much!

author
Ramming made it! (author)2013-08-04

Hello Randofo. I find this very interesting, is it possible to make a cellular light switch or similar with this. My older brother once made an cellular controlled coffee maker so he had fresh hot coffee when he came home. :) But that was way before arduinos were invented. We are talking 90's here.

author
Ramming made it! (author)2013-08-04

Hello Randofo. I find this very interesting, is it possible to make a cellular light switch or similar with this. My older brother once made an cellular controlled coffee maker so he had fresh hot coffee when he came home. :) But that was way before arduinos were invented. We are talking 90's here.

author
sfutter made it! (author)2013-06-15

Hi Randofo, great article. Thank you. One thing however --- the quad band antenna does not connect to the cellular module. It looks like we also need to buy an SMA connector? Could you please tell me which SMA antenna connector to buy? As you can see the quad band antenna link above (http://www.digikey.com/product-search/en?x=0&y=0&lang=en&site=us&KeyWords=931-1048-ND) does not come with the SMA antenna connector (as in above pic). Thanks again.

author
adnanoht made it! (author)2013-06-10

well I've just voted for you!!

author
adnanoht made it! (author)2013-06-10

thnx for the great instructable. one question, can it receive/upload data via a network connection (gprs or like so) ? and thnx gain

author
vishalapr made it! (author)2013-06-05

Only one more thing to do, wait for 2 weeks until my cellular shield that I ordered arrives
Thanks for the excellent tutorial!

author
loki2012 made it! (author)2013-05-20

Nice!

About This Instructable

92,160views

502favorites

License:

Bio: My name is Randy and I founded the Instructables Design Studio. I'm also the author of the books 'Simple Bots,' and '62 Projects to ... More »
More by randofo:Sponge BotSingle Motor BotChocolate Peanut Butter Fudge Recipe
Add instructable to: