# Adafruit FONA 3G Cellular + GPS Breakout

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/027/347/medium800/adafruit_products_Fona_America_iso_ORIG.jpg?1440189251)

For those who want to take it to _the next level_ we now have a 3G Cellular Modem breakout! The FONA 3G has better coverage, GSM backwards-compatibility and even sports a built-in GPS module for geolocation & asset tracking. This all-in-one cellular phone module with that lets you add location-tracking, voice, text, SMS and data to your project in a single breakout.

![](https://cdn-learn.adafruit.com/assets/assets/000/027/348/medium800/adafruit_products_Fona_America_kit_ORIG.jpg?1440189296)

This module measure only 1.75"x1.6" but packs a surprising amount of technology into it's little frame. At the heart is a powerfull GSM cellular module (we use the latest SIM5320) with integrated GPS. This module can do just about everything

- Quad-band 850MHz GSM, 900MHz EGSM, 1800MHz DCS, 1900MHz PCs - connect onto any global GSM network with any 2G SIM.
- **American Version** dual-band&nbsp;UMTS/HSDPA 850/1900MHz WCDMA + HSDPA
- **European Version** dual-band UMTS/HSDPA 900/2100MHz WCDMA + HSDPA
- Fully-integrated GPS (Qualcomm PM8015 GPS) that can be controlled and query over the same serial port
- Make and receive voice calls using a headset or an external 8Ω speaker + electret microphone
- Send and receive SMS messages
- Send and receive GPRS data (TCP/IP, HTTP, etc.)
- AT command interface can be used with 300, 600, 1200, 4800, 9600, 19200, 39400, 57600, 115200, 230K, 461K, 961K, 3.2M, 3.7M and 4.0Mbps
- Native USB support - plug it into a computer and you'll get serial ports for AT commands, GPS NMEA as well as a modem (note we've only tried out the AT&NMEA ports on Windows)

![](https://cdn-learn.adafruit.com/assets/assets/000/027/349/medium800/adafruit_products_Fona_America_top_demo_ORIG.jpg?1440189319)

Here's the GPS specifications:

- 16 acquisition channels
- GPS L1 C/A code
- Sensitivity  
Tracking: -157 dBm  
Cold starts : -144 dBm
- Time-To-First-Fix  
Cold starts: 100s (typ.)  
Hot starts: 1s (typ.)
- Accuracy: approx 2.5 meters

[We strongly recommend using an active antenna with the GPS](https://www.adafruit.com/product/960), while we could get a fix with a passive antenna it took a long time.

 **Please note!** We've had a lot of requests for a 3G cell module and we're happy to oblige but this module has many small differences between it and the FONA 800 and 808, so it is _not_ a drop-in replacement! In particular the data functionality is not as easy to use. We are adapting our FONA library to support the 3G chipset and right now we have SMS, calling, and basic functionality working but it will be a while until we get full GPRS TCP/IP and HTTP support. Also, the GPS is not as fast and low-power as the one on the FONA 808. **We recommend this module for people who are able to handle a more advanced experience**. [Beginners will like our FONA 80x series more](https://www.adafruit.com/categories/281).

![](https://cdn-learn.adafruit.com/assets/assets/000/027/350/medium800/adafruit_products_Fona_America_quarter_ORIG.jpg?1440189365)

Sounds great, right? So we kitted out this fine module onto a little breakout with all the extras you need to make your next project shine

- Onboard LiPoly battery charging circuitry so you can take your project on the go. Use any 500mAh+ LiPoly or LiIon battery and recharge over the MicroUSB when necessary. Two LEDs let you know when its charging and done
- Standard 4-pole TRRS headphone jack. Use any 'Android' or 'iPhone'-compatible headset with mic
- Breakouts for external 8Ω speaker and electret mic if you don't want to use a headphone
- Level shifting circuitry so you can run it with 2.8V to 5V logic.
- uFL connections for external antennas
- Indicator LEDs for power and network connectivity
- Standard SIM slides into the back

On its own, this module can't do anything. It requires a microcontroller to drive it! We suggest and use an Arduino but any 3-5V microcontroller with a UART can send and receive commands over the RX/TX pins.

You will also need some required & recommended accessories to make FONA 3G work. **These are not included!**

- **SIM Card!** [A 2G or 3G Mini SIM card is required to do anything on the cellular network.](https://www.adafruit.com/product/2505)
- **Lipoly Battery** - 500mAh or larger! [This 1200mAh](https://www.adafruit.com/products/258) will work great.
- **MicroUSB cable** for charging the battery and communicating with the module over USB
- **External uFL GSM Antenna** -[this slim one works great](http://www.adafruit.com/product/1991).
- **(or, if you want to us an SMA antenna** [- a uFL to SMA adapter cable.](https://www.adafruit.com/products/851))
- **External Active GPS Antenna** (needs a uFL to SMA adapter too) - [like this one!](https://www.adafruit.com/product/960)
- **TRRS 4-Pole Headset** - Not required but it'll be tough to make a phone call without it. Any 'iPhone' or 'Android' compatible (but not iPhone original) should work. We tried about 10 different ones, and basically the more expensive once are more comfortable and louder but our official iPhone headset mic did not work.

# Adafruit FONA 3G Cellular + GPS Breakout

## Obtaining a SIM

In order to use the phone parts of FONA you will need a SIM card. Luckily, there's a phone store in every town in America! You can get a pre-paid **or** post-paid SIM but we kinda like the pre-paid kind.  
  
A 2G or 3G Mini SIM card is **required** to use the module. Nearly any cell phone shop can sell you a SIM card. Luckily, every SIM we've seen is 2G or 3G so you are good to go!

**The FONA 800 and 808's use a 2G SIM only. Make sure you're using a SIM that can do 2G.** In the USA, that's a T-Mobile or reseller

**The FONA 3G can use either 2G or 3G. These modules will only work with AT&T in 3G mode.** Unfortunately, AT&T is deprecating its 2G network, so you will only be able to use this module in 3G mode with AT&T.&nbsp; If you want to use it with 2G, use T-Mobile  
  
MicroSIMs won't fit - so make sure its a "Mini" SIM. Sometimes these are just called plain "SIM" cards since the huge-size SIMs are rarely used. **Mini SIMs are 1" x 0.6" / 25mm x 15mm**. these are by far the most common size.

Adafruit now sells the TING SIM card, a 2G+3G SIM that works great with all FONAs, and has a great billing system as well, where you only pay what you use!

![](https://cdn-learn.adafruit.com/assets/assets/000/027/326/medium800/adafruit_products_x2505-02.jpg.pagespeed.ic.jcCA14goFU.jpg?1440186511)

Warning: 

# Some suggestions from FONA users!

- I've had good luck using the FONA with a SIM from Walmart. [Their 'Walmart Family Mobile' is a T-mobile reseller and you can pick up the SIM starter in store pretty easily](http://www.walmart.com/ip/Walmart-Family-Mobile-Starter-Kit/22150963). The service isn't the cheapest, it's $25 for the SIM and $30/month for unlimited talk+text or $40/month for unlimited talk+text+data but there's no contract as its all prepaid **-tdicola**
- Just want to let the Adafruit team know that it is possible to get pre-paided minutes on T-Mobile and its a pretty good deal. [I was paying $100 for 1000 minutes (10c a minute 20 a sms) over the course of the year.](http://www.t-mobile.com/promotions/genericregular.aspx?passet=pro_pro_goldrewards) For me it in my usage came out to about $8 a month. Have found this is something that you have to ask for at the store. No evidence in advertising or website **-Paul B.**
- [Telna has a good deal you may want to point people to for FONA. I used them for a previous GSM project and they worked great. $20 per year, includes 1000 free txt messages and a bunch of other nice features.](http://www.telnamobile.com/index.php?include=telnamobile_features)I had a lot more issues with T-Mobile (Their cards go inactive if not used in a month and you have to call to reactivate) **-Tyler C.**
- I pay 2 EUR (a bit less than $3 USD) for 2 hours, unlimited SMS and 50Mb of Data at [http://mobile.free.fr/](http://mobile.free.fr/) **-KTOWN**
- There are specialty "machine 2 machine" SIM sellers that have plans that are tuned for the short bursts of usage used by these kinds of modules. Check out [these guys](http://www.embeddedworks.net/wsim686.html?query=10GSM%20-%20GPRS/EDGE/HSPA+/LTE) for example, you can choose data, voice/sms or a combination for a pretty low price!

# Adafruit FONA 3G Cellular + GPS Breakout

## Pinouts

There's a lot packed into the FONA 3G lets go thru all the pins, buttons and indicators and what they do

![](https://cdn-learn.adafruit.com/assets/assets/000/027/330/medium800/adafruit_products_pinouts.jpg?1440187395)

# Connectors

There's three external connectors along the left side, from the top, a mini JST 2-pin, a microUSB and a headphone jack.

- **JST 2-pin** - this is the battery input connector. It works with any of our Lipoly batteries but since the charge rate is 500mA (and the cellular module can spike high current draw!) we suggest our [500mAh](https://www.adafruit.com/product/1578 "Link: https://www.adafruit.com/product/1578") or [1200mAh](https://www.adafruit.com/products/258)batteries. [You can also connect a JST cable here if you have other plans.](https://www.adafruit.com/products/261 "Link: https://www.adafruit.com/products/261")
- **MicroUSB connector** - this is the LiPoly/LiIon battery charging port. The SIM808 has a USB interface but its ONLY for reprogramming the module with an expensive and unavailable IDE. So charge only! The charge rate is 500mA max.
- **Headset jack** - this is a 'standard' TRRS 3.5mm phone headset jack with stereo earphone and mono microphone.&nbsp;[Any 'iPhone' or 'Android' compatible (but not iPhone original) should work.](https://www.adafruit.com/product/1966) We tried about 10 different ones, and basically the more expensive once are more comfortable and louder but our official iPhone headset mic did not work for unknown reasons. Sleeve is Mic+, first ring is ground, then the second ring and tip are for stereo audio. The module does not have stereo out so we just tied both together.

# Antenna ports

Up top is the place where you can plug in your GSM antenna. **An antenna is required to use the module for any kind of voice or data communications as well as some SIM commands!**

[You can either use a uFL GSM antenna like this](http://www.adafruit.com/product/1991), or use a&nbsp;[uFL to SMA adapter](http://www.adafruit.com/product/851) and [then an SMA antenna](http://www.adafruit.com/product/1859)   
  
On the left is a GPS antenna port. While you can connect a passive GPS antenna directly, we've found the performance is lacking. We recommend shorting the solder jumper labeled 'bias' and [connecting an Active GPS antenna instead, such as the one we stock in the adafruit shop](https://www.adafruit.com/product/960)

![](https://cdn-learn.adafruit.com/assets/assets/000/027/331/medium800/adafruit_products_Fona_America_quarter_ORIG.jpg?1440187678)

# SIM Connector (on Back)

A 2G or 3G Mini SIM card is **required** to use the module. Nearly any cell phone shop can sell you a SIM card. [For USA customers, we have a known-working TING SIM card which has a great billing system and works very well!](https://www.adafruit.com/product/2505)  
  
MicroSIMs won't fit - so make sure its a "Mini" SIM. **Mini SIMs are 1" x 0.6" / 25mm x 15mm**. These are by far the most common size.   
  
Most cards come with a voice and/or data plan. If you want to make phone calls and SMS's you'll need a voice plan. If you want to transmit data like fetching a webpage, you'll need a data plan.

# Bottom Breakouts

The most important pins are broken out at the bottom of the board. Not all of these are required, but they are all hella useful  
  
These are in rough order of most important (not in linear order like we usually do)  
  
These pins are all 3-5V input safe and if they are an output, the logic level is whatever Vio is set to.

- **Vio** - **THIS IS THE MOST IMPORTANT PIN!** This is the pin that you MUST drive with an external voltage from 3V-5V to set the logic level converter. The converter also buffers the indicator LEDs so NOTHING will appear to work unless this pin is powered! You should set the voltage to whatever voltage your microcontroller uses for logic. A 5V micro (like Arduino) should have it be 5V, a 3V logic micro should set it to 3V.
- **Key** - This is also a super important pin (but not as important as Vio). This is the power on/off indicator. Its also tied to the button in the top left. Tie this pin to ground for 3 to 5 seconds to turn the module on or off. It's not a level signal so it isn't like "low is off, high is on" - instead you must pulse it for ~5 seconds to turn off/on. The module comes by default off. Tie this permanently to ground if you never want your micro to turn off the FONA for power saving
- **5V** - this is the USB 5V from the microUSB connector when its in and powered. Good if you need to know when the microUSB is plugged in and/or want to recharge the battery from an external plug.
- **PS** - this is the **P** ower **S** tatus pin. It is low when the module is off and high when the module has power. If you're using the **Key** button or pin, you can monitor this pad to see when the module's booted up. This is tied to the **Pwr** LED too.
- **NS** - this is the **N** etwork **S** tatus pin. It lights up/blinks to signal the current status of the module. This is also tied to the **Net** LED so for more detail see the LEDs section below.
- **Reset** - this is module hard reset pin. By default it has a high pull-up (module not in reset). If you absolutely got the module in a bad space, toggle this pin low for 100ms to perform a hard reset.
- **RX & TX** - OK now that I made you read all that you can actually use the UART pins. The module uses UART to send and receive commands and data. These pins are auto-baud so whatever baud rate you send "AT" after reset or boot is the baud rate is used. RX is **into** the module, TX is **out of** the module.
- **RTSin** - this is the hardware flow control pin. If you turn on flow control on the FONA you can use this pin to stop and start data transfer _from_ the FONA 3G to your microcontroller
- **CTSout** - this is the hardware flow control pin. If you turn on flow control on the FONA you can use this pin to determine when the FONA 3G's serial buffer is full and you should stop and start data transfer _to_ the FONA 3G from your microcontroller
- **DTR** - this is a hardware flow control pin, it can be used with the FONA 3G to hang up calls, control data/command mode for TCP/IP, ec.
- **RI** - this is the **R** ing **I** ndicator. It is basically the 'interrupt' out pin from the module. It is by default high and can be configured to go low when a call is received. It can also be configured to go low when an SMS is received.
- **SPK+ and -** : This is for connecting an external 8 ohm speaker. The two pins are differential so they don't have output DC blocking capacitors. **You cannot connect this to a stereo, powered speakers or other non-differential**  **amplifier** without adding a 100uF+ blocking cap in series to the + pin and then not using the - pin. Instead, your amp should use GND for the - reference
- **MIC + and -** : this is for connecting an external electret microphone, it will bias the mic with 2V. Most electrets will work just fine. No extra circuitry is required for the mic such as a biaser or amplifier, just wire it up directly!

# LEDs

- **PWR** - Green! Lit when the module is booted and running
- **NET** - Red! You can use this for checking the current state without sending an AT command:   
**Always on** - the module is running but hasn't made connection to the cellular network yet  
**800ms on, 800ms off** - the module has made contact with the cellular network and can send/receive voice and SMS  
**200ms on, 200ms off** - the GPRS data connection you requested is active  
By watching the blinks you can get a visual feedback on whats going on.
- **Charging** - Orange! This is next to the microUSB jack. Indicates the onboard lipo charger is charging
- **Done** - Green! This is next to the JST jack. Indicates that the battery charging is done and the battery is full

# Adafruit FONA 3G Cellular + GPS Breakout

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/027/332/medium800/adafruit_products_Fona_America_kit_ORIG.jpg?1440188887)

Info: 

## Prepare the header strip:

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - **long pins down**

![adafruit_products_header.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/333/medium640/adafruit_products_header.jpg?1440188997)

## Add the breakout board:

Place the breakout board over the pins so that the short pins poke through the breakout pad

![adafruit_products_place.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/334/medium640/adafruit_products_place.jpg?1440189009)

## And Solder!

Be sure to solder all pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our_ [_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![adafruit_products_solder1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/335/medium640/adafruit_products_solder1.jpg?1440189021)

![adafruit_products_solder2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/336/medium640/adafruit_products_solder2.jpg?1440189025)

![adafruit_products_solder3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/337/medium640/adafruit_products_solder3.jpg?1440189029)

![adafruit_products_solder4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/338/medium640/adafruit_products_solder4.jpg?1440189033)

You're done! Check your solder joints visually and continue onto the next steps

![adafruit_products_done.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/339/medium640/adafruit_products_done.jpg?1440189047)

# Attaching Antenna & Battery

A battery, GPS antenna and GSM antenna is required! Use any Lipoly or LiIon 3.7V/4.2V battery

![](https://cdn-learn.adafruit.com/assets/assets/000/027/341/medium800/adafruit_products_Fona_America_top_demo_ORIG.jpg?1440189104)

 **Check polarity for the battery!**  
Snap the uFL connector on, it will click when placed properly

# SIM Card

You **must** insert a SIM card to do anything but the most basic tests. GPS does work without a SIM but of course you cannot send or receive texts, calls, etc!

The SIM card holder is on the back. It holds a very-standard "Mini SIM"  
Micro SIMs will not work! Make sure you get a "Mini SIM"

![adafruit_products_2542_quarter_SIZED.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/342/medium640/adafruit_products_2542_quarter_SIZED.jpg?1440189155)

Open by sliding the cover towards the antenna

![adafruit_products_simopen.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/344/medium640/adafruit_products_simopen.jpg?1440189182)

Insert the SIM with the gold pads facing up and the notch on the outer corner

![adafruit_products_siminsert.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/345/medium640/adafruit_products_siminsert.jpg?1440189191)

Close the hinge down and slide the cover to lock it in place

![adafruit_products_simclose.jpg](https://cdn-learn.adafruit.com/assets/assets/000/027/346/medium640/adafruit_products_simclose.jpg?1440189216)

# Adafruit FONA 3G Cellular + GPS Breakout

## Direct USB Connection

If you'd like to use or test the FONA 3G you can do so right over the USB port, which is not just for charging, but is also a full interface to everything the module can do!

First up, you will still need a small Lithium Polymer battery to keep the power supply stable. You'll also likely want an antenna and SIM card. A microUSB cable is required. **We've tested this on a Windows 7 computer, other operating systems may vary!**

Insert the SIM card, connect the antenna(s) and plug in the micro USB cable from your computer to the FONA 3G

![](https://cdn-learn.adafruit.com/assets/assets/000/027/351/medium800/adafruit_products_Fona_Europe_top_USB_demo_ORIG.jpg?1440191210)

Then press the small **KEY** button next to the battery & cell antenna for 5 seconds. Then the computer will recognize a multi-type USB connection. [Install the drivers](../../../../adafruit-fona-3g-cellular-gps-breakout/downloads)

There are 4 devices created

- &nbsp;A Modem device
- A USB diagnostics COM port
- A NMEA COM port (this is the raw GPS NMEA output)
- A USB AT port (this is how you can send commands to the module!)

![](https://cdn-learn.adafruit.com/assets/assets/000/027/352/medium800/adafruit_products_com.png?1440191370)

You can connect to the AT com port at any baud rate and send AT commands like normal. This makes it super easy to test out commands

![](https://cdn-learn.adafruit.com/assets/assets/000/027/354/medium800/adafruit_products_xctuati.png?1440191652)

If you turn on the gps with the **at+cgps=1** command in the AT serial port you can then connect to the NMEA COM port and see GPS NMEA data

![](https://cdn-learn.adafruit.com/assets/assets/000/027/355/medium800/adafruit_products_atgps.png?1440191710)

We haven't tried out the Modem yet and the Diagostics USB port doesnt seem to respond (probably you need a special software package)

# Adafruit FONA 3G Cellular + GPS Breakout

## Arduino Wiring

![](https://cdn-learn.adafruit.com/assets/assets/000/030/316/medium800/adafruit_products_Fona_America_top_demo_ORIG.jpg?1454433970)

# Wire up

After soldering headers to the FONA module, plug it into a breadboard. We'll use an UNO, other Arduinos may be different

- **Vio** connects to **5V (or, with a 3V logic Arduino, 3V)**
- **GND** connects to **GND**
- **Key** connects to **GND** (always on)
- **RX** connects to digital **2**
- **TX** connects to digital **3** ( **9** on Leo/Micro, **10** on Mega)
- **RST** connects to digital **4**  

Make sure a full LiPo battery is connected!

We'll be using software serial to talk to the module. The&nbsp;Mega ('2560 based) can't use Digital 3 for FONA TX, so use digital **10**** &nbsp;**instead. &nbsp;The&nbsp;Leonardo and Micro ('32u4 based) can't use digital 3 for FONA TX, so use digital&nbsp;**9** instead. &nbsp;See [this page](http://arduino.cc/en/Reference/SoftwareSerial)&nbsp;for other pins you can use for FONA TX (SoftwareSerial Receive) on the Mega, Leonardo, and Micro.

You can also try hardware serial, you'll need to update the sketch to indicate which Serial port you want to use

# Adafruit FONA 3G Cellular + GPS Breakout

## Arduino Test

Danger: 

# Download Adafruit\_FONA

Open up the Arduino library manager

![](https://cdn-learn.adafruit.com/assets/assets/000/084/053/medium800/adafruit_products_library_manager_menu.png?1573527775)

Search for the&nbsp; **Adafruit FONA** &nbsp;library and install it

![](https://cdn-learn.adafruit.com/assets/assets/000/084/054/medium800/adafruit_products_fona.png?1573527824)

We also have a great tutorial on Arduino library installation at:  
[http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use](http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use)

# FONA 3G Baud Adjustment

If you have a FONA 3G, the first time you use it you may need to run the **FONA3G\_setBaud** example to set the baud rate manually to 4800bps rather than 115200

# Load Demo

Open up **File-\>Examples-\>Adafruit\_FONA**** -\>FONAtest** and upload to your Arduino wired up to the module.

For the FONA 3G, change the constructor used in FONATest to Adafruit\_FONA\_3G:

```auto
// Use this for FONA 800 and 808s
//Adafruit_FONA fona = Adafruit_FONA(FONA_RST);
// Use this one for FONA 3G
Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST);

```

For Mega, Leonardo, or Micro, change the definition of FONA\_TX to the pin you used!

![](https://cdn-learn.adafruit.com/assets/assets/000/017/810/medium800/adafruit_products_loadtut.png?1404316141)

Make sure you have a charged 3.7/4.2V LiPoly or LiIon battery plugged into the JST and an antenna attached

![](https://cdn-learn.adafruit.com/assets/assets/000/025/543/medium800/adafruit_products_2468_top_demo_ORIG.jpg?1431723612)

![](https://cdn-learn.adafruit.com/assets/assets/000/017/811/medium800/adafruit_products_kitup.jpg?1404316219)

Once uploaded to your Arduino, open up the serial console at **115200 baud speed** to begin the tester sketch

![](https://cdn-learn.adafruit.com/assets/assets/000/017/812/medium800/adafruit_products_checkbaud.gif?1448046644)

Make sure you also have **Both NL & CR** for the serial command sender option. This means when you send data to the Arduino via the console, it will put a newline/return at the end.

# Using the Test Sketch

The test sketch has a menu interface so you can test out just about everything the FONA can do. The menu may change slightly as we add more functionality and update code!

Continue onto the next few sections to see what functionality you can test with the sketch

# Adafruit FONA 3G Cellular + GPS Breakout

## Hardware Test

# Battery voltage

Lets begin by reading the battery voltage. That's the lipoly battery. This is handy if you need to track when the battery is low! type **b** into the command window and hit **Send**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/514/medium800/adafruit_products_b.gif?1455133620)

You'll see a print-out of the battery voltage in mV, so in this case its 3.726V

![](https://cdn-learn.adafruit.com/assets/assets/000/030/515/medium800/adafruit_products_battery.gif?1455133627)

# Check SIM CCID

You can verify that the SIM is inserted and correct by reading the CCID, which is the unique identifier printed on it with **C**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/516/medium800/adafruit_products_CCID.gif?1455133669)

# Adafruit FONA 3G Cellular + GPS Breakout

## Network Test

# Check RSSI (network signal strength)

You can ask the FONA for the signal strength with the command **i**. The reply is a number, but you can convert it to dBm. Try to have the signal strength higher than 5 in order to make calls, SMSs, etc. In this case, I've got a 10

![](https://cdn-learn.adafruit.com/assets/assets/000/030/517/medium800/adafruit_products_rssi.gif?1455133721)

# Checking Network Registration

If the FONA has good signal it will immediately try to locate a cell tower and register to it.  
You can check the status of the network with **n**  
Once it's Home Registered, give it like 5-10 more seconds before trying to access/send SMS's or phone calls.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/518/medium800/adafruit_products_network.gif?1455133727)

# Adafruit FONA 3G Cellular + GPS Breakout

## Audio Settings & Test

# Set and Get audio volume

You can set the audio volume with **v** and retrieve it with **V** - its in % so ranges from 0 to 100

![](https://cdn-learn.adafruit.com/assets/assets/000/030/511/medium800/adafruit_products_setgetvol.gif?1455133438)

# Setting Headset or External audio

There are two audio paths on the FONA. One is the headset, thru the 3.5mm audio jack. The other is "external" - using the two speaker and mic pins for wiring up external speaker and mic. FM audio, phone calls, tones, etc can be routed to one or the other.  
To set the audio to headset, use the command **H**  
To set the audio to external, use the command **e**

Warning: 

![](https://cdn-learn.adafruit.com/assets/assets/000/030/512/medium800/adafruit_products_headext.gif?1455133507)

# Playing Toolkit Tones

You can test the audio path with the toolkit tones. These are tones that mimic what some phone services sound like. For a full list of tones, you can check the **AT+STTONE** command in the AT command datasheet. We'll use tone #20 which is the American dial tone.  
You can switch to headset mode, play a tone, then try it on the external audio mode. This is a very easy way to try out both speakers for debugging

![](https://cdn-learn.adafruit.com/assets/assets/000/030/513/medium800/adafruit_products_tonetest.gif?1455133532)

# Adafruit FONA 3G Cellular + GPS Breakout

## Phone Calls

# Make Phone Calls

OK now we're onto the good stuff. You can make a phone call with FONA pretty easily. Make sure you have the right audio interface selected (external or headset!) before you go forward  
  
Make a call with **c** - the call happens in the 'background'. When you're done then you can hang up with **h**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/509/medium800/adafruit_products_callphone.gif?1455133204)

# Adafruit FONA 3G Cellular + GPS Breakout

## SMS

# Send and Read SMS

Another easy thing you can do is send and receive SMS messages. Lets start by sending an SMS. We'll use twitter's 40404 short code, which will auto respond, making it easy to verify both sending and receiving  
  
You _can_ send multi-line SMS's using the library API but for this example, its easier to parse the data if its a single line!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/504/medium800/adafruit_products_sendsms.gif?1455133000)

You can then ask the SIM how many SMS's it has with **N** and read all of them with **R**  
  
Note that SMS's are referred to by slots but the number does not include empty slots. We'll show this in detail in a bit

![](https://cdn-learn.adafruit.com/assets/assets/000/030/505/medium800/adafruit_products_ReadSMS.gif?1455133043)

You can read individual SMS's with **r**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/506/medium800/adafruit_products_readonesms.gif?1455133095)

And delete SMS's by slot # with **d**

![](https://cdn-learn.adafruit.com/assets/assets/000/030/507/medium800/adafruit_products_deletesms.gif?1455133125)

Note that before I deleted SMS #2, so if I read them again, that SMS # will be an empty slot. SMS number #3 doesn't "move slots"!

![](https://cdn-learn.adafruit.com/assets/assets/000/030/508/medium800/adafruit_products_deleteread.png?1455133151)

# Adafruit FONA 3G Cellular + GPS Breakout

## 3G vs FONA 800 & 808

The FONA 3G adds 3G support but since it is a completely different chipset than the FONA 800/808 (Qualcomm not Mediatek) there are some significant differences between the two types of modules.

This is not an exhaustive list!

# SMS

## SMS's are indexed differently

FONA 800 & 808 start at 1 (one) where as the FONA 3G starts at 0 (zero)

## SMS sending extra lines

After sending an SMS using `AT+CMGS`, the FONA 3G returns two sets of CRLF's that do not appear with the FONA 800 or 808.

## SMS # query reply is different

If you request the # of SMS's on the SIM module with `AT+CPMS?` the FONA 800 & 808 reply starts with `+CPMS: "SM_P"` whereas the 3G starts with `+CPMS: "ME"`

# Voice Calls

The hanging up command is `ATH0` on the FONA 800 and 808 and `ATH` on the FONA 3G. You'll also have to send the FONA 3G a `AT+CVHU=0` command to tell it to listen for the ATH command (it will say 'OK' but not actually hang up)

# Misc

Battery voltage measurement with `AT+CBC` returns a 4-digit voltage in mV on the FONA 800 and 808. On the FONA 3G it's a floating point number in volts.

# GPS

GSMLOC (location via triangulation of nearest cell towers) is supported by the FONA 800 and 808 but not 3G

# Adafruit FONA 3G Cellular + GPS Breakout

## Downloads

# Datasheets & Files

These are the datasheets for the cell module on the FONA 3G.

- [SIM5320 AT Command set manual](http://www.adafruit.com/datasheets/SIMCOM_SIM5320_ATC_EN_V2.02.pdf)
- [SIM5320 Hardware Design](http://www.adafruit.com/datasheets/SIM5320_Hardware%20Design_V1.07.pdf)
- [SIM5320 Specification](http://www.adafruit.com/datasheets/SIM5320_Specification_V1202.PDF)
- [GPRS / TCP/IP App note](http://www.adafruit.com/datasheets/tcpip_application_note_for_wcdma_solution_v2.0_0.pdf)
- [SIM5320 USB drivers](http://www.adafruit.com/datasheets/SIM5320%20driver.rar)&nbsp;(We tried this on windows sucessfully, also looks like there's some sort of linux drivers)
- [EagleCAD PCB Files on GitHub](https://github.com/adafruit/Adafruit-FONA-SIMCOM-3G-Breakout-PCB)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library)

[Product page at SIMCOM](http://simcomm2m.com/En/module/detail.aspx?id=81)

# Schematic

Click to enlarge

![](https://cdn-learn.adafruit.com/assets/assets/000/027/324/medium800/adafruit_products_schem.png?1440185454)

# Fabrication Print

Dimensions in inches

![](https://cdn-learn.adafruit.com/assets/assets/000/027/325/medium800/adafruit_products_fabprint.png?1440185587)

# Adafruit FONA 3G Cellular + GPS Breakout

## F.A.Q.s

### 

The microUSB (on the shield, in CHARGE mode and powered via USB or DC power) is only used to charge the battery. Without a battery installed it will flicker on and off so it cannot be used to power a FONA minus battery.   
  
A 1200mAh+ sized Lithium ion/polymer battery is required, nothing else will be able to easily power the FONA and provide the correct voltage range even during 2 Amp spikes.

### 

You can't.

We keep getting people who ask "Hey I know its a requirement but I want to build a buck/boost/linear 3.8V regulator and it wil be OK because I said so" and then they realize it doesn't work well

The FONA design depends on a Lipoly battery. **The battery is not optional. The battery is essential to function. If you do not want a Lipoly battery you will have to use a different cellular module design. All of our FONAs require, depend and will not work without a Lipoly battery**

You can keep the battery topped up with an external 5V power supply for long term usage but **the battery is still required even if plugged into USB**

### 

You can always factory reset the FONA by sending it the

**ATZ**

command. Say with **fona.println("ATZ")** or using a USB console cable to send commands. If you set an odd fixed baud rate (e.g. you cannot even get an **OK** when you send **AT** ), a USB serial console cable will be helpful it quickly changing baud rates in your terminal software to get back to a working AT/OK setup!

### 

Note that you do have to use a compatible headset. Not all CTIA headsets will work,&nbsp;[the ones we have in the shop are known to work](https://www.adafruit.com/product/1966) and so do many other Android but iPhone headsets do not.

You can also use 'external' audio on the FONA (electret mic and speaker soldered to FONA) but **you cannot mix and match**. Either you use headset or you use external audio. You cant use external mic and headset speaker.

[You also have to tell the FONA which audio you are using, it does not autodetect. You can use our library and fona.setAudio()](../../../../adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test#setting-headset-or-external-audio)

### 

Right now we only know that the FONA library and shields work with Arduino UNO. Any other platforms may require porting work

### 

Yes! You can use the Lipoly as sort of a 'backup battery' - keep charging it via MicroUSB (on the shield, in CHARGE mode and powered via USB or DC power) during use. If the MicroUSB loses power, the FONA will keep going.

### 

We've noticed a lot of problems that are 'weird' that are a results of using batteries with the wrong polarity.

All batteries from adafruit have the right wire colors/polarity for the FONA

**Batteries not from Adafruit are not guaranteed to have the right pinout! Using the wrong pinout may damage the FONA and/or make it act 'odd'!**

### 

That will work fine, as long as the SIM can register to the 2G network at all, it is acceptable to use

### 

The AT&T GSM network is going to be live until January 2017. If you're reading this and it's 2017, you're outta luck. If not, you can try to get an AT&T SIM activated to the 2G GSM network but its not going to do that by default. You'll have to call up or talk to an AT&T rep and it may not go so well because they really don't want people to use their GSM network.  
  
[You can also call up T-Mobile and say you can't get connected consistently - they may send you a free signal booster](http://support.t-mobile.com/community/coverage/signal-booster "Link: http://support.t-mobile.com/community/coverage/signal-booster")

[Check out this handy map to see T-Mobile's coverage map in the USA](https://orion.freeus.com/coverage-map.aspx)

### 

We haven't done extensive testing with FONA but from preliminary reports, the FONA draws about 20-25mA while running, up to 200mA+ while actually making a call/sending/receiving data, and has very small spikes of up to 2A. The spikes are short and are absorbed by the onboard capacitors.  
  
A 1200mAh battery can run the FONA on 'standby' for a day or two.

### 

Please see [this forum post](http://forums.adafruit.com/viewtopic.php?f=19&t=58002&p=294235#p294235)!

### 

The FONA 808 has two versions, due to a revision of the module itself. Version 1 has two barcodes on the front and is part #S2-10606-Z1F0 **1**. Version 2 has a QR code on the front and is part #S2-10606-Z1F0 **2**. V2 has a newer/better chipset (MT3337 instead of MT3336) but the commandset has changed. Which is annoying but adaptable!

If you are using V1, [use this GPS command document for how to interact with the GPS subsystem](http://www.adafruit.com/datasheets/SIM808_GPS_Application_Note_V1.00.pdf)

If you are using V2, [use this GNSS command document instead.](http://www.adafruit.com/datasheets/SIM800%20Series_GNSS_Application%20Note%20V1.00.pdf)

### 

You can switch between the storage locations by changing the&nbsp;FONA\_PREF\_SMS\_STORAGE definition in the Adafruit\_FONA.h library file. &nbsp;The definition "SM" selects the SIM, and the definition "ME" selects FLASH.

```auto
// Set the preferred SMS storage.
//   Use "SM" for storage on the SIM.
//   Use "ME" for internal storage on the FONA chip
#define FONA_PREF_SMS_STORAGE "\"SM\""
//#define FONA_PREF_SMS_STORAGE "\"ME\""

```

Then recompile and upload

### 

There's a superfluous level shifting diode that we put on the FONA and FONA 808 breakouts - it turns out it isn't necessary and for microcontrollers with weaker outputs it can keep the FONA from resetting.

You can 'bridge' this diode with a piece of wire, its perfectly safe and may give you a little more headroom. There's already level shifting inside the modules so there's no risk to this mod.

Simply solder a small wire between the two pads, or remove the diode and replace with a 0 ohm resistor or wire.

See more here: [http://forums.adafruit.com/viewtopic.php?f=54&t=77778#p410867](http://forums.adafruit.com/viewtopic.php?f=54&t=77778#p410867)

![](https://cdn-learn.adafruit.com/assets/assets/000/029/555/medium800/adafruit_products_sim800.jpg?1452281681)

![](https://cdn-learn.adafruit.com/assets/assets/000/029/556/medium800/adafruit_products_sim808.jpg?1452281681)

# Adafruit FONA 3G Cellular + GPS Breakout

## FONA 3G Tips

# GPS Rollover

In Nov 2019, the GPS unit in the FONA 'rolled over' - so dates will be off by 20 years. There is no firmware fix from SIMCOM for this issue. Please get year/month/day from the cell service instead of GPS

[GPS-week-rollover_Simcom.pdf](https://cdn-learn.adafruit.com/assets/assets/000/084/848/original/GPS-week-rollover_Simcom.pdf?1574619386)
# Large file transfer

You can use FTP with the FONA 3G, [rozzie has some tips in the forums for how to use it for large file transfer!](https://forums.adafruit.com/viewtopic.php?f=8&t=108159)

# AT&T vs T-Mobile 3G

The American band version of the FONA 3G covers dual-band UMTS/HSDPA 850/1900MHz WCDMA + HSDPA

In the USA, only [AT&T](https://en.wikipedia.org/wiki/AT%26T_Mobility#Radio_frequency_summary) has 850 MHz and 1900 MHz as the two supported HSPA bands. So if you use T-Mobile or a distributor of theirs, you will only get 2G support not full 3G! For 3G, stick to AT&T or check with the carrier that they have one of the dual-band UMTS/HSDPA 850/1900MHz WCDMA + HSDPA supported

# Usage In Australia

[Here's a note from Dan Clark](https://forums.adafruit.com/viewtopic.php?f=54&t=108549&p=545929#p545929)

> I've experienced similar issues with the FONA network. I've done a bit of research and here is my conclusions.  
>   
> The Telstra frequency bands for 2G were 900/1800MHZ while the 3G bands for Telstra are 850MHZ/2100MHZ.  
> The European version product offers 900/2100MHZ bands while the American version offers 850/1900MHZ.  
>   
> I've been using both the American and European models in regional Australia(poor reception), they were both operating fine until Telstra shut down the 2G network.  
> This resulted in the European version of the product being unable to work as it cannot connect to the Telstra 3G lower frequency band(the 3g band is 850 while the European model can only do 900). However upon trialing the American version, it operated fine as it does cover the required frequency for 3G connection. I have realized the American version would not be capable of providing connection to the high frequency 3G network(3G is 2100MHZ and American can only do 1900) but this is not an issue as the high frequency band is not available in rural Australia.  
>   
> Also from my experience, the device can get RSSI signal but won't register unless the correct frequency bands are available. ie using a European version, I will get full RSSI strength but no network registration as the European version operates on 900MHZ, while Telstra 3G is 850MHZ.  
>   
> One solution to this problem is to simply switch carriers(not a great idea if you are using this in regional areas like myself), or alternately use the American version of the device which is unfortunately not sold to Australia because .....?


## Featured Products

### Adafruit FONA 3G Cellular Breakout - European version

[Adafruit FONA 3G Cellular Breakout - European version](https://www.adafruit.com/product/2691)
For those who want to take it to&nbsp;the next level&nbsp;we now have a 3G Cellular Modem breakout! The FONA 3G has better coverage, GSM backwards-compatibility and even sports a built-in GPS module for geolocation & asset tracking. This all-in-one cellular phone module with that lets you...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2691)
[Related Guides to the Product](https://learn.adafruit.com/products/2691/guides)
### Adafruit FONA 3G Cellular Breakout - American version

[Adafruit FONA 3G Cellular Breakout - American version](https://www.adafruit.com/product/2687)
For those who want to take it to&nbsp;the next level&nbsp;we now have a 3G Cellular Modem breakout! The FONA 3G has better coverage, GSM backwards-compatibility and even sports a built-in GPS module for geolocation & asset tracking. This all-in-one cellular phone module with that lets you...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2687)
[Related Guides to the Product](https://learn.adafruit.com/products/2687/guides)
### GSM SIM Card from Ting & Adafruit - Data/Voice/Text

[GSM SIM Card from Ting & Adafruit - Data/Voice/Text](https://www.adafruit.com/product/2505)
Adafruit is&nbsp;now a phone company :)&nbsp; Or, well, we've sold [DIY cell phones](https://www.adafruit.com/categories/281) for awhile now but you've never been able to buy your [FONA](https://www.adafruit.com/fona) and a SIM Card all in one place. &nbsp;Now,...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2505)
[Related Guides to the Product](https://learn.adafruit.com/products/2505/guides)
### GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA

[GPS Antenna - External Active Antenna - 3-5V 28dB 5 Meter SMA](https://www.adafruit.com/product/960)
Give your Ultimate GPS V3 a boost with this external active antenna. This GPS antenna draws about 10mA and will give you an additional 28 dB of gain. It's got a 5 meter long cable so it will easily reach wherever you need it to. The antenna is magnetic so it will stick to the top of a car...

In Stock
[Buy Now](https://www.adafruit.com/product/960)
[Related Guides to the Product](https://learn.adafruit.com/products/960/guides)
### SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable

[SMA to uFL/u.FL/IPX/IPEX RF Adapter Cable](https://www.adafruit.com/product/851)
This RF adapter cable is super handy for anyone doing RF work. Often times, small electronics save space by having a pick-and-placeable u.FL connector (also called uFL, IPEX, IPAX, IPX, MHF, and AM). But most antennas have SMA or RP-SMA connectors on them. This little cable will bridge the...

In Stock
[Buy Now](https://www.adafruit.com/product/851)
[Related Guides to the Product](https://learn.adafruit.com/products/851/guides)
### Lithium Ion Polymer Battery - 3.7v 1200mAh

[Lithium Ion Polymer Battery - 3.7v 1200mAh](https://www.adafruit.com/product/258)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 1200mAh for a total of about 4.5 Wh. If you need a larger battery, <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/258)
[Related Guides to the Product](https://learn.adafruit.com/products/258/guides)
### Right-angle Mini GSM/Cellular Quad-Band Antenna - 2dBi SMA Plug

[Right-angle Mini GSM/Cellular Quad-Band Antenna - 2dBi SMA Plug](https://www.adafruit.com/product/1858)
This 2.2"/57mm long antenna has 2dBi of gain and 50Ω impedance so it will work fantastically with just about any 850/900/1800/1900/2100 wireless receiver/transmitter such as any Cellular or GSM/GPRS device.  
  
Antenna comes with a **Right-angle** SMA connector....

In Stock
[Buy Now](https://www.adafruit.com/product/1858)
[Related Guides to the Product](https://learn.adafruit.com/products/1858/guides)
### Mini GSM/Cellular Quad-Band Antenna - 2dBi SMA Plug

[Mini GSM/Cellular Quad-Band Antenna - 2dBi SMA Plug](https://www.adafruit.com/product/1859)
This 2.4"/61mm long antenna has 2dBi of gain and 50Ω impedance so it will work fantastically with just about any 850/900/1800/1900/2100 wireless receiver/transmitter such as any Cellular or GSM/GPRS device.  
  
Antenna comes with a SMA connector, which is the most common type...

In Stock
[Buy Now](https://www.adafruit.com/product/1859)
[Related Guides to the Product](https://learn.adafruit.com/products/1859/guides)

## Related Guides

- [Adafruit QT Py ESP32-S2 and QT Py ESP32-S2 with uFL Antenna](https://learn.adafruit.com/adafruit-qt-py-esp32-s2.md)
- [Using a Raspberry Pi as a Router](https://learn.adafruit.com/using-a-raspberry-pi-as-a-router.md)
- [Geofencing with the FONA 808 & Adafruit IO](https://learn.adafruit.com/geofencing-with-the-fona-808-and-adafruit-io.md)
- [Personalized NextBus ESP8266 Transit Clock](https://learn.adafruit.com/personalized-esp8266-transit-clock.md)
- [Icicle Crown with Pebble Pixels & WLED](https://learn.adafruit.com/icicle-crown-with-pebble-pixels-wled.md)
- [Glitter Positioning System](https://learn.adafruit.com/glitter-positioning-system.md)
- [WiFi Mailbox Notifier](https://learn.adafruit.com/wifi-mailbox-notifier.md)
- [Upgrading AirLift ESP32 Firmware](https://learn.adafruit.com/upgrading-esp32-firmware.md)
- [MagTag Tides Viewer](https://learn.adafruit.com/magtag-tides-viewer.md)
- [FLORA + FONA](https://learn.adafruit.com/flora-plus-fona.md)
- [Setting up a Raspberry Pi as a WiFi Access Point](https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point.md)
- [No-Code Counters and Email Reports with Adafruit IO Actions](https://learn.adafruit.com/no-code-counters-and-email-reports-with-adafruit-io-actions.md)
- [Using LoraWAN and The Things Network with CircuitPython](https://learn.adafruit.com/using-lorawan-and-the-things-network-with-circuitpython.md)
- [Wireless NeoPixel Controller](https://learn.adafruit.com/neotrellis-neopixel-controller.md)
- [Schluff - The Sleep Monitor](https://learn.adafruit.com/schluff-the-oshw-sleep-monitor.md)
