The battery supply will not be fed back into the Arduino, so you’ll need to
either find a separate power supply for the microcontroller board, or split the
battery in two directions.
Installing and Using the Arduino Library
Now that all of the nitty-gritty hardware stuff is out of the way, it’s time to get
to some Arduino coding! First, we’ll get you set up with the
SFE_MG2639_CellularShield library, then we’ll delve into some example
sketches.
Update Arduino!
For the SFE_MG2639_CellularShield library to
function properly, you'll need to be using an updated version of
Arduino.
Arduino 1.6.1 or above is required
. Download the latest
version of the IDE from arduino.cc.
(That release of Arduino included an improved version of the
SoftwareSerial library, which the Cellular Shield library depends on.)
Download and Install the Arduino Library
We’ve written an Arduino library specifically for the MG2639 Cellular Shield.
Click the button below to download it, or clone it from our GitHub repository.
DOWNLOAD THE SFE_ MG 2639_CELLSHIELD LIBRARY
For help installing the library, please check out our Installing an Arduino
Library tutorial. You’ll need to copy the library into a “libraries” folder within
your Arduino sketchbook.
Try the MG2639_GetInfo Example
To prove that your cellular shield is working, try running the most simple
example sketch included with the library.
MG2639_GetInfo.ino
is a simple
sketch that turns the shield on, verifies communication with it, and prints all
sorts of information like your CIMI, ICCID, and phone number.
Open the sketch by going to
File
>
Examples
>
SparkFun MG2639
CellShield
>
MG2639_GetInfo
.
Then, after verifying that your SIM card, antennas, and power supply are all
connected, upload the sketch.
Page 10 of 22