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.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Go Get Stuff
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
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...
(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:
Set the current time - yy/mm/dd:
Send test call:
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:
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:
Text one of the following commands to your cellular module:
//turns the LED on
//turns the LED off
Step 9: Voice
To initialize a voice call upload the following code:
To receive a voice call upload the following code: